Select to view content in your preferred language

Tea Cup Diagram - Fill Symbol with color based on value

1562
7
04-30-2021 09:56 AM
RickeyFight
MVP Regular Contributor

I want to fill a symbol or on a map or a filled shape chart using esri data. 

I have been requested to make it like a tea cup diagram. 

RickeyFight_0-1619801702743.png

I know this is a static image but was wondering if there is a way to do this dynamically. 

RickeyFight_1-1619801747956.png

 

https://www.usbr.gov/pn/hydromet/roguetea.html

 

Tags (1)
7 Replies
AnneFitz
Esri Regular Contributor

You should be able to accomplish this using CIMSymbols. Here's an example: https://developers.arcgis.com/javascript/latest/sample-code/cim-primitive-overrides/

RickeyFight
MVP Regular Contributor

@AnneFitz Do they have to be dots or can they be a different symbol? 

 

0 Kudos
AnneFitz
Esri Regular Contributor

No they don't have to be dots! Can be any point symbol - or lines and polygons can follow the same pattern, using CIM primitive overrides to override the symbol properties based on data values.

0 Kudos
RickeyFight
MVP Regular Contributor

@AnneFitz  I will look into this thanks 

0 Kudos
PeterPucz
New Contributor

@RickeyFight  Did you end up figuring out a solution to creating a tea cup diagram? I am currently trying to create the exact same thing. I've created a tea cup with the CIMSymbols but trying to figure out an efficient solution for filling the cups. 

0 Kudos
AnneFitz
Esri Regular Contributor

This blog might be some help - https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/how-to-create-a-sparkline-map-with-t...

In this app, the developers updated the underlying geometry of the vector marker symbol to create a sparkline based on the provided data. I think a similar concept could probably be applied in order to fill the teacup.

Keep me updated on your progress! Would love to see the finished product. 

0 Kudos
RickeyFight
MVP Regular Contributor

@PeterPucz 

I did not.
I ended up using esri dashboard and making this https://experience.arcgis.com/experience/4a5e89ec2e1b4757990d23b31b38c07f/page/Page-1/

 

0 Kudos