API REFERENCE

getZoom

Read the current zoom range. Check the return type's nullability and the range for each axis.

Definition

typescript
getZoom(): Promise<CartesianZoomState | null>

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