MasterSerieIdx: Number;
The MasterSerieIdx property determines binding index of master series.
The property is determined for forecast series. The series is not bound if the -1 value is set.
Use JSON or the setMasterSerieIdx method to set the property value, and the getMasterSerieIdx method to get the property value.
To execute the example, the HTML page must contain the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Express report must contain the forecast series:
// Get bubble chart instance DV = expressBox.getDataView(); CV = DV.getBubbleChartView(); bubbleChart = CV.getInstance(); // Get the first data series serie = bubbleChart.getSeries()[0]; // Determine whether the first series is bound to master series console.debug(serie.getMasterSerieIdx());
After executing the example the console displays master series index for the first data series. If the first data series does not have master series, the -1 value is displayed.
See also: