ParallelCoordinates.selectItems

Syntax

selectItems(items: Object, reset: Boolean);

Parameters

items. Chart lines to select.

reset. Indicates whether previous selection of chart lines is reset. Available values:

Description

The selectItems method sets selection for specified chart lines.

Example

Executing the example requires the ParallelCoordinates component named coord (see Example of Creating the ParallelCoordinates Component). Select the second line of the parallel coordinates chart in the whole time interval:

var lines = {};
// Get the second line of the chart
var lineIndex = 1;
var line = coord.getLines()[lineIndex];
if(line) {
    lines[line.getId()] = line;
    // Select the second line of the chart
    coord.selectItems(lines);
};

After executing the example the second line in the chart is selected.

See also:

ParallelCoordinates