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.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 737 Beast Mode
- 55 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive