Skip to main content

NestedDonutSeries2D Class

Represents a series view of the Nested Donut type.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v14.2.dll

#Declaration

public class NestedDonutSeries2D :
    PieSeries2D,
    INestedDoughnutSeriesView,
    ISupportSeriesGroups

#Remarks

The NestedDonutSeries2D class provides the functionality of a series view of the Nested Donut type within a chart control.

In addition to the common view settings inherited from the PieSeries class, the NestedDonutSeries2D class declares the Nested Donut type specific settings. The settings allow you to define an inner indent between nested donuts (NestedDonutSeries2D.InnerIndent), specify the specific weight for each nested donut series (NestedDonutSeries2D.Weight), and create groups for similar Nested Donut series (NestedDonutSeries2D.Group).

For more information on series views of the pie type, see the Nested Donut topic.

#Examples

The following example demonstrates how to create a Nested Donut chart.

To do this, it is necessary to assign the ChartControl.Diagram property to SimpleDiagram2D, and then add two NestedDonutSeries2D objects with points to the diagram's Diagram.Series collection.

Also, this example shows how to change the color of each series point according to its values using the ChartControl.CustomDrawSeriesPoint event. As a result, segments of an outer donut representing kinds of products are colored with a specific product group color (an inner donut).

#Implements

See Also