DXPieChart Class

The Chart view that visualizes data as pie series.

Declaration

@interface DXPieChart: DXChartBase

Pie Chart Example

The Chart visualizes data series provide. Each series defines data's appearance and behavior. Series that are compatible with the Pie Chart View are inherit from the DXPieSeries class. The <xref:DXChartBase.legend> displays series' and series points' designations.

Refer to the Pie Chart guide to learn more about the Pie Chart.

Note

To display Cartesian series, use the <xref:DXChart> view instead.

Inheritance

UIView
DXChartBase
DXPieChart

Properties

DXPieChart.hint Property

Gets or sets the Pie Chart's interactive hint settings.

Declaration

@property (readwrite, nullable) DXPieHint *hint

Property Value

Type Description
DXPieHint *

The DXPieHint object that is an interactive hint settings storage.

DXPieChart.selectionBehavior Property

Gets or sets a value that specifies how to mark selected data points.

Declaration

@property (readwrite) DXSelectionBehavior selectionBehavior

Property Value

Type Description
DXSelectionBehavior

The DXSelectionBehavior enumeration value that specifies how to mark selected data points.

DXPieChart.series Property

Returns all chart's series.

Declaration

@property (readonly, nonatomic, nonnull) NSArray<DXPieSeries*> *series

Property Value

Type Description
NSArray<DXPieSeries *> *

The array of series that the chart displays.

DXPieChart.style Property

Gets or sets the chart's appearance settings.

Declaration

@property (readwrite, nullable) DXPieChartStyle *style

Property Value

Type Description
DXPieChartStyle *

The chart's appearance settings storage.

When the pie chart uses the default style, this property returns nil.

Instance Methods

DXPieChart.addSeries: Instance Method

Adds the specified new series to the chart.

Declaration

- (void)addSeries:(nonnull DXPieSeries *)series

Parameters

Type Name Description
DXPieSeries * series

The DXPieSeries object to add to the chart's series collection.

DXPieChart.removeAllSeries Instance Method

Removes all series from the chart.

Declaration

- (void)removeAllSeries

DXPieChart.removeSeries: Instance Method

Removes the specified series from the chart.

Declaration

- (void)removeSeries:(nonnull DXPieSeries *)series

Parameters

Type Name Description
DXPieSeries * series

The series that should be removed from the chart.

DXPieChart.removeSeriesAtIndex: Instance Method

Removes a series at the specified index from the chart.

Declaration

- (void)removeSeriesAtIndex:(NSInteger)index

Parameters

Type Name Description
NSInteger index

The zero-based index of a series that should be removed from the chart.