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.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 755 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive