Skip to main content
Version: 8.1

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

TypeParameterDescription
strseriesNameThe 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")