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

Open In Dojo
series.toggleVisibility(false);

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

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