ChartColumnSerie.SecondaryAxisIndex

Syntax

SecondaryAxisIndex: Number;

Description

The SecondaryAxisIndex property determines custom template of the chart series.

Comments

Use JSON or the setSecondaryAxisIndex method to set the property value, and the getSecondaryAxisIndex method to get the property value.

Example

Executing the example requires the web application with opened instance of the express report containing selected chart with set custom template. It is required to enter code in the console:

dView = PP.App.getModuleObject().getReportBox().getDataView();
chart = dView.getChartView().getInstance();
// Get the first data series
firstSerie = chart.getSeries()[0];
// Set up series by additional axis
firstSerie.setSecondaryAxis(true);
// Get additional axis index
console.log(firstSerie.getSecondaryAxisIndex());

After executing the example the additional axis was set for the first series. the console displayed its index.

See also:

ChartColumnSerie