ChartDirector 7.0 (Perl Edition)

Axis.syncScale


Usage

syncScale(axis [, slope [, intercept ]])

Description

Synchronizes the scale of this axis with another axis using a linear formula.

The scale of this axis (value) will be related to the scale of the source axis (value2) using the following formula:

value = value2 * slope + intercept

The differences between syncScale and Axis.syncAxis are:

Arguments

ArgumentDefaultDescription
axis(Mandatory)The axis to synchronize to. A value of null means not to synchronize to any axis.
slope1The slope for synchronizing this axis to the other axis.
intercept0The intercept parameter for synchronizing this axis to the other axis.

Return Value

None