ChartCanvasSerie.SecondaryAxis

Syntax

SecondaryAxis: Boolean;

Description

The SecondaryAxis property determines whether secondary axis is used for the chart data series.

Comments

Use JSON or the setSecondaryAxis method to set the property value and the getSecondaryAxis method to get the property value.

Available values:

Example

Executing the example requires that the HTML page contains the Chart component named chart (see Example of Creating a Line Chart). Bind secondary axis to the first data series in the chart:

// Get the first data series
var serie = chart.getSeries()[0];
// Bind the first data series to the secondary axis
serie.setSecondaryAxis(true);

After executing the example secondary axis is bound to the first data series in the chart. Coordinates of the second data series are recalculated in accordance with the secondary axis:

See also:

ChartCanvasSerie