ChartCatView.getChartDataSourceState

Syntax

getChartDataSourceState();

Description

The getChartDataSourceState method returns properties of data sources for the Chart tool ribbon panel.

Comments

The method returns value in JSON format.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). The example given below checks if table selection is used:

// Get view of the Chart tab
var chartCategory = expressBox.getRibbonView().getChartCategory();
// Check if table selection is used
console.log("Is use grid selection: " + chartCategory.getChartDataSourceState().useGridSelection);

The following information is displayed as the result of example execution:

Is use grid selection: false

See also:

ChartCatView