ChartDirector 7.0 (ASP/COM/VB Edition)

Axis.

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:

The differences between syncScale and Axis.syncAxis are:

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:

- Axis.syncAxis assumes the two axes are of the same length. In addition to the scale, it will also synchronize the ticks and labels, and configurations that may affect the positions of ticks and labels, such as axis margins and axis indentation. This ensures the two axes scale align properly.

- syncScale does not assume the two axes are of the same length. For example, the y-axis of one chart can be synchronized with the ColorAxis of a different chart. The two axes can have different labels to fit their different lengths.

Arguments

Argument | Default | Description |
---|---|---|

axis | (Mandatory) | The axis to synchronize to. A value of null means not to synchronize to any axis. |

slope | 1 | The slope for synchronizing this axis to the other axis. |

intercept | 0 | The intercept parameter for synchronizing this axis to the other axis. |

Return Value

None

© 2021 Advanced Software Engineering Limited. All rights reserved.