chartjs-plugin-zoom / ZoomOptions
Interface: ZoomOptions
Defined in: options.ts:92
Container for zoom options
Properties
drag?
drag?: DragOptions;Defined in: options.ts:112
Options of the drag-to-zoom mode
mode?
mode?: ModeOption;Defined in: options.ts:102
Zooming directions. Remove the appropriate direction to disable E.g. 'y' would only allow zooming in the y direction A function that is called as the user is zooming and returns the available directions can also be used: mode: function({ chart }) { return 'xy'; },
onZoom?
onZoom?: (context) => void;Defined in: options.ts:126
Function called while the user is zooming
Parameters
context
chart
Chart
trigger
Returns
void
onZoomComplete?
onZoomComplete?: GenericEvent;Defined in: options.ts:131
Function called once zooming is completed
onZoomRejected?
onZoomRejected?: RejectEvent<Event>;Defined in: options.ts:136
Function called when wheel input occurs without modifier key
onZoomStart?
onZoomStart?: RejectableStartEvent<Event>;Defined in: options.ts:138
overScaleMode?
overScaleMode?: ModeOption;Defined in: options.ts:121
Deprecated
Use scaleMode instead
pinch?
pinch?: PinchOptions;Defined in: options.ts:117
Options of the pinch mode
scaleMode?
scaleMode?: ModeOption;Defined in: options.ts:119
wheel?
wheel?: WheelOptions;Defined in: options.ts:107
Options of the mouse wheel mode