Skip to content

grafit-charts


Interface: ZoomOptions

Extends

Properties

axes?

optional axes?: "y" | "x" | "xy"

Which axes are zoomable ('x' by default).


doubleClickReset?

optional doubleClickReset?: boolean

Reset on double click (true by default).


dragPan?

optional dragPan?: boolean

Pan by dragging (true by default).


dragSelect?

optional dragSelect?: boolean

Drag to select an area → zoom (false by default).


enabled?

optional enabled?: boolean

Inherited from

Switchable.enabled


minRatio?

optional minRatio?: number

Minimum window width (fraction of the domain, 0.05 by default).


panKey?

optional panKey?: "shift" | "meta" | "alt" | "ctrl"

Modifier key for panning; without it, dragging selects an area (box-zoom).


wheelStep?

optional wheelStep?: number

Zoom step per wheel tick (0.1 by default).


wheelZoom?

optional wheelZoom?: boolean

Mouse wheel zoom (true by default).