defaultHiddenSeries property

List<String>? get defaultHiddenSeries

Gets a list of series IDs that should be hidden by default on first chart draw.

Implementation

List<String>? get defaultHiddenSeries => _defaultHiddenSeries;
set defaultHiddenSeries (List<String>? defaultHiddenSeries)

Sets a list of series IDs that should be hidden by default on first chart draw.

This will also reset the current list of hidden series, filling it in with the new default list.

Implementation

set defaultHiddenSeries(List<String>? defaultHiddenSeries) {
  _defaultHiddenSeries = defaultHiddenSeries;

  _hiddenSeriesList.clear();

  _defaultHiddenSeries?.forEach(hideSeries);
}