Interface: ZoomOptions
Extends
Properties
axes?
optionalaxes?:"y"|"x"|"xy"
Which axes are zoomable ('x' by default).
doubleClickReset?
optionaldoubleClickReset?:boolean
Reset on double click (true by default).
dragPan?
optionaldragPan?:boolean
Pan by dragging (true by default).
dragSelect?
optionaldragSelect?:boolean
Drag to select an area → zoom (false by default).
enabled?
optionalenabled?:boolean
Inherited from
minRatio?
optionalminRatio?:number
Minimum window width (fraction of the domain, 0.05 by default).
panKey?
optionalpanKey?:"shift"|"meta"|"alt"|"ctrl"
Modifier key for panning; without it, dragging selects an area (box-zoom).
visibleAnchor?
optionalvisibleAnchor?:DomainAnchor
Which end of the domain visibleCount starts from ('start' by default).
visibleCount?
optionalvisibleCount?:number
Initial window sized to this many items along the category axis. Applies even without enabled, and yields to an explicit navigator.min/max. minRatio does not clamp it: an explicit count outranks the interaction floor.
wheelStep?
optionalwheelStep?:number
Zoom step per wheel tick (0.1 by default).
wheelZoom?
optionalwheelZoom?:boolean
Mouse wheel zoom (true by default).