DataMapping.Index

Syntax

Index: Integer;

Description

The Index property specifies index to use to get data from each dimension.

Comments

Property value can be set from JSON or using the setFormat property.

Example

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). In the bubble chart display data that corresponds to the index 5 relative to X axis:

// Get settings of data mapping of data series and bubble chart X axis
var xVisual = bubbleChart.getXVisual();
// Get data mapping settings
var mapping = xVisual.getCoordinateMapping();
// Set new index
mapping.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:

DataMapping