The following example shows how to create a Pie chart at runtime.
The Chart Control uses the Simple Diagram to display pies. Cast the ChartControl.Diagram property to the SimpleDiagram type to access diagram settings. The Chart Control determines the diagram type based on the series that is added first. We recommend that you access the diagram to configure its settings after at least one series is added to the chart.
To access pie series view settings, cast the SeriesBase.View property to the PieSeriesView type.
- How to: show a Pie series' total label
- How to: display values both as real values and as percentages in a Pie chart's legend
(you will be redirected to DevExpress.com to submit your response)