EaxObject.SelectionChanged

Syntax

SelectionChanged: function (sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The SelectionChanged event occurs on changing the selection of the express report visualizer elements.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component) and have a loaded chart in working area of the express report. Handle the SelectionChanged event:

// Get express report chart view
dataView = expressBox.getDataView();
chartView = dataView.getChartView();
// Set a handler for the SelectionChanged event
chartView.SelectionChanged.add(function (sender, args) {
    console.debug(args.Items[0] ? "Selection contains elements of the 1 series" : "Selection does NOT contain elements of the 1 series");
    console.debug(args.Items[1] ? "Selection contains elements of the 2 series" : "Selection does NOT contain elements of the 2 series");
});

After executing the specified actions, on selecting chart elements the console displays information about whether the selection contains elements of the first and the second series.

See also:

EaxObject