ChartDirector 6.0 (Ruby Edition)

Axis.setLabelOffset


Usage

setLabelOffset(offset)

Description

Shifts the axis labels from its default position along the axis.

The offset can be specified in axis scale unit. For example, an offset of 50 means the tick is shifted 50 units along the axis.

The offset can also be specified as a multiple of the major tick increment. This is by using the TickInc predefined constant to represent the major tick increment. For example, an offset of 0.5 * TickInc means the offset is half the major tick increment.

To shift the axis labels in pixel units, the Box.setPos method of the axis label prototype (obtained using Axis.setLabelStyle) can also used instead.

Arguments

ArgumentDefaultDescription
offset(Mandatory)The distance to shift the labels along the axis.

Return Value

None