Select to view content in your preferred language

Aggregate points into clusters with proportions

1259
7
04-13-2023 04:05 AM
StinaE
by
New Contributor II

Hi,

I have aggregated points into clusters that show number of points (in this case number of Plants) and conveniently change which points to cluster if you zoom in. Now I want to divide these clusters into proportions, (like a"pie chart") by another attribute (in this case Size Category).

I cant find how to do this? Am I missing somthing?

I am new to ArcGis so please excuse me if this is an obvious question.

 

0 Kudos
7 Replies
Robert_LeClair
Esri Notable Contributor

One idea to consider is to use the Split by Attribute (Data Management) geoprocessing tool to break up your originail point feature class by attribute into multiple feature classes.  Then add each new point feature class to your map and use clustering.  That could work...

0 Kudos
StinaE
by
New Contributor II
Sorry for the late reply, I was on holiday and then got sick.

I don't understand how to get the results into pie charts from your
destruktion below. Doesn't this just split the point into separate groups?

0 Kudos
Robert_LeClair
Esri Notable Contributor

Ah okay I think I understand what you're looking to do.  You have plant points that are symbolized using clustering.  Then as you zoom in, they "convert" from clusters to point symbols.  Then "maybe" you zoom in further and want to see pie chart symbology based upon another attribute field.  Correct?  If so, then you can have 2 layers (they're both the same feature class).  The first layer does the clustering/point symbols until you reach a certain scale. Then using a Visibility Range on the Feature Layer contextual tab, that layer turns off and the 2nd layer turns on but this time using the Pie Chart Symbology.  Would that work for your what you're looking to accomplish?

0 Kudos
StinaE
by
New Contributor II

Not quite, 

I want the clustered points to form a pie chart all the time. 

I actually found a post on ArcGis developers (ArcGis Maps SDK for JavaScript) that is very similar to what I want (except I want a proper pie, not a ring), just for comparison.

https://developers.arcgis.com/javascript/latest/sample-code/featurereduction-cluster-pie-charts/

Unfortunately, using code for this is a bit beond me.

0 Kudos
Robert_LeClair
Esri Notable Contributor

Thank you for the links - now I understand.  I'm pretty sure you can do this in ArcGIS Insights as there's a donut pie chart there that updates and perhaps other web apps but not with core ArcGIS Pro.

0 Kudos
StinaE
by
New Contributor II
Ok. A pity.
Thank you so much for your intersting suggestions! I might use one of them
instead of my pie clusters.
Best regards
/Stina
0 Kudos
AlexandreDuclaux
New Contributor

Hello,

I too have a similar requirement, which I previously managed to fulfill using Leaflet many years ago. Here is the link for reference: https://app.cartotarget.com/?token=8e4598cc88bbbc4fad55214a2394bd292e1a5c975310490e042366c5e7d4f83b#...

It appears that this can be achieved with Esri, albeit through some development. Here is a relevant link: https://developers.arcgis.com/javascript/latest/sample-code/featurereduction-cluster-pie-charts/

It also seems feasible with Insight, but there's a catch: Aggregation is only possible through a join with another boundary layer dataset or where multiple data points appear in the exact same location. Here is the link for more details: https://doc.arcgis.com/fr/insights/latest/create/pie-chart-symbols.htm

While it's certainly possible to set up a pie chart symbol for your points based on field values, it doesn't quite meet our needs : https://pro.arcgis.com/fr/pro-app/3.1/help/mapping/layer-properties/chart-symbology.htm

Once again, I didn't think I was trying to do something out of the ordinary, but I find myself stuck. 

0 Kudos