getMaxIndexData();
The getMaxIndexData method returns maximum number of elements by all attributes.
The method returns value of the Number type.
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). Get maximum number of elements by all attributes and the number of data series in the source:
// Get data source var dataSource = bubbleChart.getDataSources().ds0; // Get maximum number of elements by all data source attributes console.log("Maximum number of elements by all attributes: " + dataSource.getMaxIndexData()); // Get the number of data series in the source console.log("Number of data series in the source: " + dataSource.getSeriesCount());
After executing the example the browser console displays maximum number of elements by all attributes and the number of data series in the source:
Maximum number of elements by all attributes: 7
Number of data series in the source: 28
See also: