Skip to main content
Version: 8.1

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

TypeParameterDescription
NumberstartThe starting x-axis value. Accepts timestamp or number.
NumberendThe 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)