toggleHighlight

Toggles the highlight for the entire series or for specific point(s).

Parameters

show Boolean

A value indicating whether the highlight should be shown or hidden.

filter Function|Array

A function that will is used to filter the highlighted points or an Array holding the point(s) that should be highlighted.

Example - highlight the series points

series.toggleHighlight(true);

Example - highlight the series points with value equal to 1

series.toggleHighlight(true, function(point) {
    return point.value === 1;
});

Example - highlight the first point

var point = series.points()[0];
series.toggleHighlight(true, point);
In this article