Skip to main content
A newer version of this page is available.

DXNumericAxisY Class

The numeric values axis.

Declaration

@interface DXNumericAxisY: DXAxisBase

Remarks

The following image demonstrates parameters specific to this axis:

Numeric axis parameters

Refer to the Axes guide for more information about axes.

Inheritance

NSObject

Properties

alwaysShowZeroLevel Property

Gets or sets the value indicating whether the range should always include a zero value.

Declaration

@property (readwrite) BOOL alwaysShowZeroLevel

Property Value

Type Description
BOOL

YES if the range should include a zero value; otherwise NO.

autoRangeMode Property

Gets or sets the range automatically calculation mode.

Declaration

@property (readwrite) DXAutoRangeMode autoRangeMode

Property Value

Type Description
DXAutoRangeMode

The DXAutoRangeMode enumeration value that specifies how to automatically calculate axis’ range.

gridAlignment Property

Gets or sets the major tickmarks and gridlines’ alignment on the numeric values axis.

Declaration

@property (readwrite) CGFloat gridAlignment

Property Value

Type Description
CGFloat

The grid’s alignment

gridOffset Property

Gets or sets the first major tickmark’s and gridline’s offset from the range’s minimum value on the numeric values axis.

Declaration

@property (readwrite) CGFloat gridOffset

Property Value

Type Description
CGFloat

The first major tickmark’s and gridline’s coordinate, in axis units.

labelTextFormatter Property

Gets or sets a formatter that provides numeric Y-axis labels’ text.

Declaration

@property (readwrite, nullable) id<DXNumericAxisLabelTextFormatter> labelTextFormatter

Property Value

Type Description
id<DXNumericAxisLabelTextFormatter>

An object of a class implementing the DXNumericAxisLabelTextFormatter interface that formats axis values.

Remarks

Note that, this property has a higher priority than the DXSeriesLabel.format. If both are specified, the formatted value this property provides is used.

range Property

Gets or sets the values axis’s range parameters.

Declaration

@property (readwrite, nullable) DXNumericRange *range

Property Value

Type Description
DXNumericRange *

The DXNumericRange object that specifies the range settings.

Instance Methods

addConstantLine: Instance Method

Adds the specified constant line to the numeric Y-axis.

Declaration

- (void)addConstantLine:(nonnull DXNumericConstantLine *)line

Parameters

Name Type Description
line DXNumericConstantLine *

The DXNumericConstantLine object that specifies the constant line to add to the axis.

addStrip: Instance Method

Adds the specified strip to the numeric Y-axis.

Declaration

- (void)addStrip:(nonnull DXNumericStrip *)strip

Parameters

Name Type Description
strip DXNumericStrip *

The DXNumericStrip object that specifies the strip to add to the axis.

removeConstantLine: Instance Method

Removes the specified constant line from the axis.

Declaration

- (void)removeConstantLine:(nonnull DXNumericConstantLine *)line

Parameters

Name Type Description
line DXNumericConstantLine *

The DXNumericConstantLine object that specifies the constant line to be removed from the axis.

removeStrip: Instance Method

Removes the specified strip from the axis.

Declaration

- (void)removeStrip:(nonnull DXNumericStrip *)strip

Parameters

Name Type Description
strip DXNumericStrip *

The DXNumericStrip object that specifies the strip to be removed from the axis.