Edit this page

toggleVisibility

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

Parameters

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

series.toggleVisibility(false);

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

series.toggleVisibility(false, function(dataItem) {
    return dataItem.value === 1;
});
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy