DXChart Class

The Chart view that visualizes data as a Cartesian series.

Declaration

@interface DXChart: DXChartBase

Chart Example

The Chart visualizes data that series provide. Each series defines data's appearance and behavior. Series that are compatible with the Chart View are inherited from the DXSeries class. The axisX and axisY properties manages the chart's coordinate space and define how the chart represents its series. The <xref:DXChartBase.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.

Inheritance

UIView
DXChartBase
DXChart

Properties

Constructors

DXChart.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.

DXChart.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.

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.

DXChart.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.

DXChart.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.

DXChart.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.

DXChart.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.

DXChart.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.

DXChart.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.

DXChart.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.

DXChart.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.

If the default style is used, this property returns nil. To reset the default style, set this property to nil.

Instance Methods

Constructors

DXChart.addSeries: Instance Method

Adds the specified new series to the chart.

Declaration

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

Parameters

Type Name Description
DXSeries * series

The DXSeries object adds series to the chart's series collection.

DXChart.removeAllSeries Instance Method

Removes all series from the chart.

Declaration

- (void)removeAllSeries

DXChart.removeSeries: Instance Method

Removes the specified series from the chart.

Declaration

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

Parameters

Type Name Description
DXSeries * series

The DXSeries object removes series from the chart's series collection.

DXChart.removeSeriesAtIndex: Instance Method

Removes a series at the specified index from the chart.

Declaration

- (void)removeSeriesAtIndex:(NSInteger)index

Parameters

Type Name Description
NSInteger index

A series's zero-based index that should be removed from the chart.