selectItems(items: Object, reset: Boolean);
items. Chart lines to select.
reset. Indicates whether previous selection of chart lines is reset. Available values:
true. Previous selection of chart lines is reset.
false. Previously selected chart lines are accounted for (default).
The selectItems method sets selection for specified chart lines.
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: