Component Methods
The following methods can be called on the ApexCharts (Legacy) component from Python scripting.
📄️ addPointAnnotation
Draws a point annotation on the chart after it has been rendered. Can be used to highlight specific data points. You can choose whether the annotation should persist through future chart updates.
📄️ clearAnnotations
Delete all dynamically added annotation elements from the chart.
📄️ hideSeries
Programmatically hides a chart series if it's currently visible. If the series is already hidden, calling this has no effect.
📄️ resetSeries
Resets all toggled series and restores the chart to its original state. Optionally updates the series data and resets the zoom level.
📄️ showSeries
Programmatically shows a chart series if it's hidden. If the series is already visible, calling this has no effect.
📄️ toggleSeries
Programmatically toggles the visibility of a chart series. This is especially useful when implementing a custom legend.
📄️ updateOptions
Updates the chart options by merging the new configuration with the existing one.
📄️ updateSeries
Updates the series array, overriding the existing data. Supports options for animation, zoom maintenance, and data synchronization with the Gateway.
📄️ zoomX
Manually zooms into the chart using the provided X-axis start and end values. Useful for programmatically focusing on a specific time range or section of the chart.