ChartDirector 5.1 (PHP Edition)

Axis.setTickOffset


Usage

setTickOffset(offset)

Description

Shifts the position of the ticks 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.

For a label based axis (set up with Axis.setLabels or Axis.setLabels2), by default, the ticks are center aligned with the labels. This method is commonly used to shift the ticks to put them in between the labels. This is by using an offset of 0.5 to shift the ticks for half the label interval.

Arguments

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

Return Value

None