EaxCategoryView.getChartDataSourceState

Syntax

getChartDataSourceState();

Description

The getChartDataSourceState method determines the data range presented in visualizers.

Comments

The method returns a JSON object with the useGridSelection field that determines whether selected table area data is presented in visualizers.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Determine, which data range is presented in visualizers:

// Get view of the Data tab
var category = expressBox.getRibbonView().getDataCategory();
// Determine a data range presented in visualizers 
var state = category.getChartDataSourceState();
if (state) {
    if (state.useGridSelection) {
        console.log("Selected table area data is presented in visualizers");
    } else {
        console.log("Entire table data is presented in visualizers");
    }
}

After executing the example the browser console displays a message that entire table data is presented in visualizers.

See also:

EaxCategoryView