DXChart Class
The Chart view that visualizes data as a Cartesian series.
Declaration
@interface DXChart: 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 Chart View should inherit the DXSeries class. The axisX and axisY properties manage the chart’s coordinate space and define how the chart represents its series. The legend displays series’ and series points’ designations.
Refer to the Cartesian Chart guide to learn more about the Chart.
Note
Use the DXPieChart view to display Pie series.
Inherited Members
Inheritance
Properties
axisMaxZoomPercent Property
Gets or sets the maximum zoom value for both axes as a percentage.
Declaration
@property (readwrite) double axisMaxZoomPercent
Property Value
Type | Description |
---|---|
double | The maximum zoom value as a percentage. |
axisX Property
Gets or sets the chart’s X-axis (arguments axis).
Declaration
@property (readwrite, nullable) DXAxisX *axisX
Property Value
Type | Description |
---|---|
DXAxisX * | The DXAxisX class descendant that is the current arguments axis. |
Remarks
Note that the X-axis type is related to the series data type. If these types are not compatible, series does not display on the chart. If the X-axis is not specified, the chart generates it according to the first series’s data type.
axisXNavigationMode Property
Gets or sets the X-axis’s navigation mode.
Declaration
@property (readwrite) DXAxisNavigationMode axisXNavigationMode
Property Value
Type | Description |
---|---|
DXAxisNavigationMode | The DXAxisNavigationMode enumeration value specifies the X-axis’s available navigation actions. |
axisY Property
Gets or sets the chart’s Y-axis (values axis).
Declaration
@property (readwrite, nullable) DXNumericAxisY *axisY
Property Value
Type | Description |
---|---|
DXNumericAxisY * | The DXNumericAxisY class descendant that is the current values axis. |
axisYNavigationMode Property
Gets or sets the Y-axis’s navigation mode.
Declaration
@property (readwrite) DXAxisNavigationMode axisYNavigationMode
Property Value
Type | Description |
---|---|
DXAxisNavigationMode | The DXAxisNavigationMode enumeration value specifies the Y-axis’s available navigation actions. |
hint Property
Gets or sets the Chart’s interactive hint settings.
Declaration
@property (readwrite, nullable) DXHint *hint
Property Value
Type | Description |
---|---|
DXHint * | The DXHint object that is an interactive hint settings storage. |
rotated Property
Gets or sets the value specifying whether the diagram is rotated.
Declaration
@property (readwrite) BOOL rotated
Property Value
Type | Description |
---|---|
BOOL | YES if the diagram is rotated; otherwise NO. |
scrollIndicatorsEnabled Property
Gets or sets the value indicating whether scroll indicators are enabled.
Declaration
@property (readwrite) BOOL scrollIndicatorsEnabled
Property Value
Type | Description |
---|---|
BOOL | YES if scroll indicators are enabled; otherwise NO. |
series Property
Returns the array of series that the chart displays.
Declaration
@property (readonly, nonatomic, nonnull, copy) NSArray<DXSeries*> *series
Property Value
Type | Description |
---|---|
NSArray<DXSeries *> * | The array of DXSeries objects that the chart displays. |
style Property
Gets or sets the chart’s style.
Declaration
@property (readwrite, nullable) DXChartStyle *style
Property Value
Type | Description |
---|---|
DXChartStyle * | The DXChartStyle object specifying the chart’s style. |
Remarks
If the default style is used, this property returns nil. To reset the default style, set this property to nil.
Instance Methods
addSeries: Instance Method
Adds the specified new series to the chart.
Declaration
- (void)addSeries:(nonnull DXSeries *)series
Parameters
Name | Type | Description |
---|---|---|
series | DXSeries * | The DXSeries object adds series 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 DXSeries *)series
Parameters
Name | Type | Description |
---|---|---|
series | DXSeries * | The DXSeries object removes series from the chart’s series collection. |
removeSeriesAtIndex: Instance Method
Removes a series at the specified index from the chart.
Declaration
- (void)removeSeriesAtIndex:(NSInteger)index
Parameters
Name | Type | Description |
---|---|---|
index | NSInteger | A series’s zero-based index that should be removed from the chart. |