The following example demonstrates how to create a Pie chart at runtime.
Note that this series view type is associated with the Simple Diagram type, and you should cast your diagram object to this type, in order to access its specific options.
Dealing with Pie charts, you may also find the following documents useful:
- How to: Show Values as Percents in the Legend of a Pie Chart;
- How to: Show N Top Points as a Single Section in a Pie Chart.
Example Comments
Added By: Eric Joe at: 7/8/2013 6:50:36 AM
Dear all, could anyone guide me how to cast the diagram object to this form?
Thank you.