ChartDirector 7.1 (C++ Edition)

XYChart.syncYAxis


Usage

void syncYAxis(double slope = 1, double intercept = 0);

Description

Sets a linear formula to synchronize the secondary y-axis scale to the primary y-axis scale.

The formula is in the format:

y2 = y1 * slope + intercept

This method is usually used if the two y-axes represent the same measurement using different units. Examples including temperature in Celsius and in Fahrenheit, and length in meters and feet.

Arguments

ArgumentDefaultDescription
slope1The slope parameter for the formula linking the secondary y-axis to the primary y-axis.
intercept0The intercept parameter for the formula linking the secondary y-axis to the primary y-axis.

Return Value

None