toggleSeries
Programmatically toggles the visibility of a chart series. This is especially useful when implementing a custom legend.
See toggleSeries – ApexCharts Docs for more information.
Overview
Syntax
component.toggleSeries(seriesName)
Parameters
Type | Parameter | Description |
---|---|---|
str | seriesName | The name of the series to toggle visibility for. |
Returns
None
Examples
Toggle Series
This example toggles the visibility of a series named "SeriesA"
.
self.getSibling("apexchart").toggleSeries("SeriesA")