DDX Mapbox cluster
I am using a mapbox ddx cluster for one of my dashboards.
Now by default, mapbox is taking three value from the data source, lat coordinates, lng coordinates and a value. When the combined together as a group and then it shows on map. And the further we zoom in, the value become split according to that specific coordinates.
Now My case is little bit different, my data have another value column(risk_levels) as same as with the value column on those same rows too. And I want to show the count inside the donut as the value same which is already showing, but now I want to divide the donut cluster into segments according to the risk_levels. It means that if risk level are available, donut will show its full value count in the middle and the risk value divisions on the outside of donut cluster.
I am unable to do this. I tried to add the risk_level value inside properties, which is being used to show the total count.
But when I tried to access the risk level value, its not coming as groups as other values are already in the features object after we map them on querySourceFeatures. Belowis the example how I am getting the risk level value but not coming in object
Below is my resultant, which is right now showing total value count in the middle. Also the segments are right now showing the divisions of those counts. Not risk level. I need to show segments according to risk level count on outside and total value count inside.
Answers
-
I would look through the mapbox documentation here:
@ellibot may have some insight. I believe he has used this before.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0 -
@MarkSnodgrass I was able to add a new custom value in features object, but when I user querySourceFeatures in updateMarkers function, the newly added value doesn't show in there.
0 -
Hi, @ellibot / @MarkSnodgrass . Any comments please.
0
Categories
- All Categories
- 1.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 294 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 97 SQL DataFlows
- 607 Datasets
- 2.1K Magic ETL
- 3.8K Visualize
- 2.4K Charting
- 707 Beast Mode
- 49 App Studio
- 39 Variables
- 667 Automate
- 170 Apps
- 446 APIs & Domo Developer
- 44 Workflows
- 7 DomoAI
- 33 Predict
- 13 Jupyter Workspaces
- 20 R & Python Tiles
- 391 Distribute
- 111 Domo Everywhere
- 274 Scheduled Reports
- 6 Software Integrations
- 115 Manage
- 112 Governance & Security
- Domo Community Gallery
- 31 Product Releases
- 9 Domo University
- 5.3K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 103 Community Announcements
- 4.8K Archive