Select to view content in your preferred language

Creating pie charts with ArcObjects

1716
0
06-13-2016 04:48 AM
JonMorris2
Occasional Contributor II


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.

0 Kudos
0 Replies