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


show Boolean

A value indicating whether the series or the points should be shown or hidden.

filter Function

An optional function that is used to filter the points that should be shown or hidden. The function is passed the point dataItem as argument.

Example - hide the series


Example - hide the series points with dataItem value equal to 1

series.toggleVisibility(false, function(dataItem) {
    return dataItem.value === 1;
In this article