API REFERENCE

zoomTo

zoom the active cartesian family to explicit windows (x / y, xAxis / yAxis). Non-cartesian types resolve null.

Definition

typescript
zoomTo(request: CartesianZoomRequest): Promise<CartesianZoomChangeEventDetail | null>
ArgumentsTypeRequired
requestCartesianZoomRequestRequired

Return type: Promise<CartesianZoomChangeEventDetail | null>. Call the method after element registration and await its Promise result.