resetSeries
Resets all toggled series and restores the chart to its original state. Optionally updates the series data and resets the zoom level.
See resetSeries – ApexCharts Docs for more information.
Overview
Syntax
component.resetSeries([shouldUpdateChart], [shouldResetZoom])
Parameters
Type | Parameter | Description |
---|---|---|
bool | shouldUpdateChart | Whether to restore the original series data. |
bool | shouldResetZoom | Whether to reset the zoom level if the chart was zoomed. |
Returns
None
Examples
Reset Series
This example resets the series and also resets the zoom level.
self.getSibling("apexchart").resetSeries(True, True)