ChartDirector 7.0 (PHP Edition)

Axis.setLogScale


Usage

setLogScale(lowerLimit, upperLimit [, majorTickInc [, minorTickInc ]])

Description

Sets the axis to use the given logarithmic scale.

Arguments

ArgumentDefaultDescription
lowerLimit(Mandatory)The lower bound of the axis.
upperLimit(Mandatory)The upper bound of the axis.
majorTickInc0Adds major ticks to the axis, where the major ticks are separated by majorTickInc in ratio. For example, a value of 10 means each tick will be 10 times the value of the previous tick. Each major tick will have an associated text label for the value if the axis at the tick.

The predefined constant LogTick means the ticks will be a segment from the sequence ..., 1, 2, 5, 10, 20, 50, 100, ... These numbers are roughly equally spaced in a logarithmic axis.

The predefined constant LinearTick the tick increment will be linear within two consecutive powers of 10, like ..., 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, ...

0 means the major ticks will be automatically determined. In this case, the lowerLimit and upperLimit may be automatically adjusted to align with the ticks.

Use NoValue to disable major ticks.
minorTickInc0Adds minor ticks to the axis, where the minor ticks are separated by minorTickInc in ratio.

The predefined constant LogTick and LinearTick has the same meaning as in the majorTickInc argument.

0 means no minor tick is used.

Return Value

None