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:
- 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.
© 2021 Advanced Software Engineering Limited. All rights reserved.