EaxMdService.setChartSelection

Syntax

setChartSelection(report: PP.Exp.EaxDocument, series: Object, callback: PP.Delegate);

Parameters

report. Express report document.

series. Metadata containing information about chart series.

callback. Callback function.

Description

The setChartSelection method sets selection of express report chart series.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component), and a chart must be loaded in express report working area. Set series selection:

// Select the second element for the second and the third series
series =  [ {
                index: 1, // Second series
                points: {
                    Item: [1]
                }
            }, {
                index: 2, // Third series
                points: {
                    Item: [1]
                }
            }];
// Set selection
eaxMdService.setChartSelection(eaxAnalyzer, series);
// Get chart view
dV = expressBox.getDataView();
cV = dV.getChartView();
// Refresh chart 
cV.refreshAll();

After executing the example the second element is selected for the second and the third series in the chart.

See also:

EaxMdService