Select to view content in your preferred language

Aggregate points into clusters with proportions

2631
10
04-13-2023 04:05 AM
StinaE
by
Emerging Contributor

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.

 

10 Replies
Robert_LeClair
Esri Esteemed 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
Emerging Contributor
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 Esteemed 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
Emerging Contributor

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 Esteemed 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
Emerging Contributor
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
RachaelChasse
Frequent Contributor

I have not yet found a reasonable way to accomplish this in ArcGIS Pro.  Fortunately (yet frustratingly), the ArcGIS Online map viewer has arguably more capability than ArcGIS Pro for accomplishing this task.

I published my ArcGIS Pro point layer to my ArcGIS Online organization.  I was then able to open that layer in the online map viewer and symbolize it using the Aggregation / Chart Clustering option.  The result is dynamic and adjusts based on the scale of the map as well. 

But why the web mapping app has more capability than the desktop application is beyond me though.  You'd think there would be better feature parity between the platforms for this, and IMO this is something that ArcGIS Pro should definitely be capable of producing on its own.

RachaelChasse_0-1729263409372.png

RachaelChasse_1-1729263442687.png

 

 

0 Kudos
Robert_LeClair
Esri Esteemed Contributor

@RachaelChasse - I agree that it would be nice to have functional equivalency of chart types between ArcGIS Pro and ArcGIS Online!  I did review the ArcGIS Pro Ideas page on Esri Community and did not see an idea for this item.  I would suggest you create an idea for this chart type so it gets visibility with the ArcGIS Pro Developers.

0 Kudos