Skip to main content

DXAxisBase Class

The base class for all Cartesian Chart‘s axes.

Declaration

@interface DXAxisBase: DXChartElement

Remarks

This class introduces axis elements that the following image shows.

Axis elements

Note that the axis style controls visibility of tickmarks, gridlines and interlacing.

Inheritance

NSObject
DXChartElement
DXAxisBase

Properties

constantLines Property

Returns the array of constant lines that the axis contains.

Declaration

@property (readonly, nonnull) NSArray<DXConstantLineBase*> *constantLines

Property Value

Type Description
NSArray<DXConstantLineBase *> *

The array of DXConstantLineBase objects that the axis contains.

Remarks

Cast the line’s object to one of the descendant classes (DXQualitativeConstantLine, DXNumericConstantLine or DXDateTimeConstantLine) to obtain a constant line’s value. Note that, the descendant class should be compatible with the axis type, whose constant lines are processed.

hidden Property

Gets or sets the value indicating whether an axis is hidden.

Declaration

@property (readwrite) BOOL hidden

Property Value

Type Description
BOOL

YES if the axis should be hidden; otherwise NO.

hintOptions Property

Gets or sets axis hint options that configure how the Crosshair Cursor interacts with the axis.

Declaration

@property (readwrite, nullable) DXAxisHintOptions *hintOptions

Property Value

Type Description
DXAxisHintOptions *

The hint options storage.

label Property

Gets or sets axis labels’ settings.

Declaration

@property (readwrite, nullable) DXAxisLabel *label

Property Value

Type Description
DXAxisLabel *

The DXAxisLabel object that configures appearance, position, content and visibility of the axis labels.

layout Property

Declaration

@property (readwrite, nullable) DXAxisLayout *layout

Property Value

Type
DXAxisLayout *

position Property

Gets or sets the position of an axis.

Declaration

@property (readwrite) DXAxisPosition position

Property Value

Type Description
DXAxisPosition

The DXAxisPosition enumeration value indicating the position of an axis.

strips Property

Returns the array of strips that the axis contains.

Declaration

@property (readonly, nonnull) NSArray<DXStripBase*> *strips

Property Value

Type Description
NSArray<DXStripBase *> *

The array of DXStripBase objects that the axis contains.

Remarks

Cast the strip object to one of the descendant classes (DXQualitativeStrip, DXNumericStrip or DXDateTimeStrip) to obtain a strip’s obtain minimum and maximum values. Note that, the descendant class should be compatible with the axis type, whose strips are processed.

style Property

Gets or sets axis style parameters.

Declaration

@property (readwrite, nullable) DXAxisStyle *style

Property Value

Type Description
DXAxisStyle *

The DXAxisStyle object that specifies appearance settings of an axis.

synchronizer Property

Gets or sets a label that indicates whether the axis’ range should be synchronized with another axis’ range.

Declaration

@property (readwrite, nullable) DXChartSynchronizer *synchronizer

Property Value

Type Description
DXChartSynchronizer *

The DXChartSynchronizer object that is the synchronization label.

Remarks

Note that axes with the same type and with the same label are synchronized.

title Property

Gets or sets the axis title settings.

Declaration

@property (readwrite, nullable) DXAxisTitle *title

Property Value

Type Description
DXAxisTitle *

The DXAxisTitle object that stores axis title settings.