AnsweredAssumed Answered

Creating pie charts with ArcObjects

Question asked by jon.morris on Jun 13, 2016


I'm trying to create pie charts on the fly using ArcObjects (at ArcGIS 10.0) and it's mostly working, but ChartRenderer.CreateLegend() doesn't seem to be fully working.

 

This sample here does most of what I want, and the legends in the TOC look kind of right. However, when I go into the layer properties then click OK to come out again, the values displayed in the TOC and the pie sizes change. I think the legend is not properly created until you click OK on the properties dialog.

 

This is obviously not suitable for a programmatic approach, so does anyone have any ideas. I can't find any other samples or information beyond what is in the Esri API.

Outcomes