DXPieChart Class
The Chart view that visualizes data as pie series.
Declaration
@interface DXPieChart: DXChartBase
Remarks
The Chart displays a collection of series the series property stores. A series type defines how the chart shows data and how data representation behaves. Series that are compatible with the Pie Chart View should inherit the DXPieSeries class. The 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 DXChart view instead.
Inherited Members
Inheritance
Properties
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. |
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. |
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. |
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. |
Remarks
When the pie chart uses the default style, this property returns nil.
Instance Methods
addSeries: Instance Method
Adds the specified new series to the chart.
Declaration
- (void)addSeries:(nonnull DXPieSeries *)series
Parameters
Name | Type | Description |
---|---|---|
series | DXPieSeries * | The DXPieSeries object to add to the chart’s series collection. |
removeAllSeries Instance Method
Removes all series from the chart.
Declaration
- (void)removeAllSeries
removeSeries: Instance Method
Removes the specified series from the chart.
Declaration
- (void)removeSeries:(nonnull DXPieSeries *)series
Parameters
Name | Type | Description |
---|---|---|
series | DXPieSeries * | The series that should be removed from the chart. |
removeSeriesAtIndex: Instance Method
Removes a series at the specified index from the chart.
Declaration
- (void)removeSeriesAtIndex:(NSInteger)index
Parameters
Name | Type | Description |
---|---|---|
index | NSInteger | The zero-based index of a series that should be removed from the chart. |