DXChartBase Class

Chart views' base class within the DevExpress Charts Suite for iOS.

Declaration

@interface DXChartBase

Properties

Constructors

DXChartBase.delegate Property

Gets or sets the chart delegate.

Declaration

@property (readwrite, weak, nonatomic, nullable) id<DXChartDelegate> delegate

Property Value

Type Description
id<DXChartDelegate>

The class adopting the DXChartDelegate protocol that is the chart delegate.

This property's value is nil if the window does not have a delegate.

A chart object's delegate is inserted in the responder chain after the chart and delegation messages relay various chart action

DXChartBase.legend Property

Gets or sets a chart's legend settings.

Declaration

@property (readwrite, nullable) DXLegend *legend

Property Value

Type Description
DXLegend *

The DXLegend object that configures the legend.

DXChartBase.selectedItems Property

Returns information about the selected series and series points.

Declaration

@property (readonly, nonatomic, nonnull) NSArray<DXSeriesPointInfo*> *selectedItems

Property Value

Type Description
NSArray<DXSeriesPointInfo *> *

The array of DXSeriesPointInfo objects that contains information about the selected series and selected points within a series.

If the selectionKind property is set to DXChartSelectionKindSeries, the chart does not provide any information about the selected points and the DXSeriesPointInfo.dataPointIndices array is empty.

DXChartBase.selectionKind Property

Gets or sets the value indicating a type of chart elements which should be selected.

Declaration

@property (readwrite, atomic) DXChartSelectionKind selectionKind

Property Value

Type Description
DXChartSelectionKind

The DXChartSelectionKind enumeration value, specifying whether series or points should be selected.

DXChartBase.selectionMode Property

Gets or sets the value indicating how many chart elements can be selected simultaneously.

Declaration

@property (readwrite, atomic) DXChartSelectionMode selectionMode

Property Value

Type Description
DXChartSelectionMode

The DXChartSelectionMode enumeration value, specifying whether single or multiple chart items should be selected.

Instance Methods

Constructors

DXChartBase.calcHitInfo: Instance Method

Returns information about chart elements at the specified point.

Declaration

- (nonnull DXChartHitInfo *)calcHitInfo:(CGPoint)point

Parameters

Type Name Description
CGPoint point

The CGPoint object that specifies the test point coordinates relative to the chart's top-left corner.

Returns

Type Description
DXChartHitInfo *

The DXChartHitInfo object that contains information about the chart elements under the test point.

DXChartBase.hideHint Instance Method

Hides the displayed hint.

Declaration

- (void)hideHint

DXChartBase.init Instance Method

Initializes and returns a newly allocated object with default settings.

Declaration

- (instancetype)init

Returns

Type Description
instancetype

An initialized chart object.

DXChartBase.initWithCoder: Instance Method

Initializes and returns an object from data in a given unarchiver.

Declaration

- (instancetype)initWithCoder:(NSCoder *)aDecoder

Parameters

Type Name Description
NSCoder * aDecoder

The NSCoder object that is unarchiver.

Returns

Type Description
instancetype

An initialized chart object.

DXChartBase.initWithFrame: Instance Method

Initializes and returns a newly allocated object with the specified frame rectangle.

Declaration

- (instancetype)initWithFrame:(CGRect)frame

Parameters

Type Name Description
CGRect frame

The GCRect object that is the frame rectangle for the view, measured in screen points.

Returns

Type Description
instancetype

An initialized chart object.

DXChartBase.resumeRender Instance Method

Resumes rendering a chart.

Declaration

- (void)resumeRender

DXChartBase.setSelected:seriesWithIndex:pointWithIndex: Instance Method

Specifies a data point's selection state.

Declaration

- (void)setSelected:(BOOL)isSelected seriesWithIndex:(NSInteger)seriesIndex pointWithIndex:(NSInteger)pointIndex

Parameters

Type Name Description
BOOL isSelected

A data point's selection state.

NSInteger seriesIndex

The series containing a data point index.

NSInteger pointIndex

The data point index within a series.

DXChartBase.setTheme: Instance Method

Specifies the chart's current theme.

Declaration

- (void)setTheme:(DXChartTheme)themeType

Parameters

Type Name Description
DXChartTheme themeType

The value that specifies the chart's theme.

DXChartBase.showHint: Instance Method

Shows an interactive hint (Tooltip or Crosshair Cursor) at the specified point on a chart.

Declaration

- (void)showHint:(CGPoint)point

Parameters

Type Name Description
CGPoint point

The CGPoint object that specifies an on-screen chart point whose coordinates are related the Chart's top left corner.

DXChartBase.showHintForPointWithIndex:ofSeriesWithIndex: Instance Method

Shows a hint for the specified data point.

Declaration

- (void)showHintForPointWithIndex:(NSInteger)pointIndex ofSeriesWithIndex:(NSInteger)seriesIndex

Parameters

Type Name Description
NSInteger pointIndex

The data point index within a series.

NSInteger seriesIndex

The series containing a data point index.

DXChartBase.suspendRender Instance Method

Suspends rendering a chart.

Declaration

- (void)suspendRender

Use this method to avoid flickering on consecutive data changes, for example, when a data point is added to a source, and another is removed.