Chart.hoverItems

Syntax

hoverItems(items: Object);

Parameters

items. JSON object that contains settings of the following type: <index of the hovered series>: true.

Description

The hoverItems method sets highlighting for specified chart series.

Example

Executing the example requires that the page contains the Chart component named chart. Hover the cursor over chart series with the indices 0 and 1:

chart.hoverItems({1: true, 0: true});

After executing the example the first and second series in the chart are highlighted. The Chart.ItemsHovered event occurred: the browser console shows indices of the highlighted items.

NOTE. If line chart type is set, the highlighting is not visible. To make the highlighting visible, set the chart type to histogram (Type: "Column").

See also:

Chart