hoverItems(items: Object, timelineStep: Integer);
items. Chart lines to be highlighted.
timelineStep. Index of the time range where specified chart lines should be highlighted. Optional parameter.
The hoverItems method highlights specified chart lines in the specified time range.
Executing the example requires the ParallelCoordinates component named coord (see Example of Creating the ParallelCoordinates Component). Highlight the first line of the parallel coordinates chart at the entire time range:
var lines = {}; // Get the first line of the chart var lineIndex = 0; var line = coord.getLines()[lineIndex]; if(line) { lines[line.getId()] = line; // Highlight the first line of the chart coord.hoverItems(lines); }; // Refresh the chart coord.refreshView(null, false);
After executing the example the first line on the chart is highlighted.
See also: