RatingChartSerie.Index

Syntax

Index: Number;

Description

The Index property returns current number of data series.

Comments

The property is read-only. The property value is returned using the getIndex method.

Example

Executing the example requires that the page contains the RatingChart component named ratingChart (see Example of Creating the RatingChart Component). Get data series number, rating position change correspondingly to the previous step of the time line and information whether the series is selected now or not:

serie = ratingChart.getSerie(0);
console.log("Data series: " + serie.getIndex());
console.log("Change position from the previous step: " + serie.getMove());
if (serie.getIsSelected()) console.log("Series is selected"); else console.log("Series is not selected");

After executing the example the console displays information about data series.

See also:

RatingChartSerie