DataVisualizer.EnableBatchData

Syntax

EnableBatchData: Boolean

Description

The EnableBatchData property controls availability of batch data in the chart source.

Comments

Use JSON or the setEnableBatchData method to set the property value, and the getEnableBatchData method to get the property value.

The property is set to True if the batch data is available and False (default) if it is not available.

Example

To execute the example, the HTML page must contain the BubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Make the batch data available and then get the number of series in the first data source of the bubble chart:

// Enable to use batch data
bubbleChart.setEnableBatchData(true);
// Get an array of data sources of the bubble chart
var dataSources = bubbleChart.getDataSources();
if (bubbleChart.getEnableBatchData() && dataSources) {
    // Get data source by identifier
    var ds = bubbleChart.getFirstDataSource();
    // Determine number of data series
    var seriesCount = ds.getSeriesCount();
    console.log("Number of data series of the first source \"" + ds.getId() + "\": " + seriesCount);
};

As a result of executing the example, the browser console displays identifier and number of series of the bubble chart first source:

Number of data series of the ds0 first source: 28

See also:

DataVisualizer