setIndex(value: Number);
value. Index to be used to get data from dimension.
The setIndex method sets index which will be used to get data from dimension.
To execute the example, the HTML page must contain the component named bubbleChart (see Example of Creating the BubbleChart ComponentBubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Display data that corresponds to the 5 index relative to X axis in the bubble chart, enable refresh of data mapping settings on index change:
// Get settings for mapping of bubble chart X axis series data var xVisual = bubbleChart.getXVisual(); // Enable refresh of data mapping settings on index change xVisual.setSetupOnStep(False); // Set new index xVisual.setIndex(5); // Display data that correspond to the 5 index bubbleChart.animate(bubbleChart.getTimeline().getStepDuration());
After executing the example the bubble chart displays data that corresponds to the index 5 relative to the X axis:
See also: