Skip to content

chartjs-plugin-zoom / ZoomOptions

Interface: ZoomOptions ​

Defined in: options.ts:92

Container for zoom options

Properties ​

drag? ​

ts
drag?: DragOptions;

Defined in: options.ts:112

Options of the drag-to-zoom mode


mode? ​

ts
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? ​

ts
onZoom?: (context) => void;

Defined in: options.ts:126

Function called while the user is zooming

Parameters ​

context ​
chart ​

Chart

trigger ​

ZoomTrigger

Returns ​

void


onZoomComplete? ​

ts
onZoomComplete?: GenericEvent;

Defined in: options.ts:131

Function called once zooming is completed


onZoomRejected? ​

ts
onZoomRejected?: RejectEvent<Event>;

Defined in: options.ts:136

Function called when wheel input occurs without modifier key


onZoomStart? ​

ts
onZoomStart?: RejectableStartEvent<Event>;

Defined in: options.ts:138


overScaleMode? ​

ts
overScaleMode?: ModeOption;

Defined in: options.ts:121

Deprecated ​

Use scaleMode instead


pinch? ​

ts
pinch?: PinchOptions;

Defined in: options.ts:117

Options of the pinch mode


scaleMode? ​

ts
scaleMode?: ModeOption;

Defined in: options.ts:119


wheel? ​

ts
wheel?: WheelOptions;

Defined in: options.ts:107

Options of the mouse wheel mode

MIT Licensed