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.
See zoomX – ApexCharts Docs for more information.
Overview
Syntax
component.zoomX(start, end)
Parameters
Type | Parameter | Description |
---|---|---|
Number | start | The starting x-axis value. Accepts timestamp or number. |
Number | end | The ending x-axis value. Accepts timestamp or number. |
Returns
None
Examples
Zoom X-Axis
This example zooms into a specific range on the X-axis.
self.getSibling("apexchart").zoomX(1698098360040, 1698098480040)