PanZoom:update
methodPanZoom:update(options: chart.PanZoomOptions)Reconfigure the interaction in place; an in-flight gesture is left undisturbed. Raises after remove.
-- A drag already in progress is left undisturbed.
pan_zoom:update({ zoom_step = 0.5, double_click_reset = false })options chart.PanZoomOptions options 8 keys Omitted keys keep their current value.
| Key | Type | Description |
|---|---|---|
| x | boolean | Pan / zoom the x axis. |
| y | boolean | Pan / zoom the y axis. |
| pan_button | "left" | "right" | "middle" | "back" | "forward" | boolean | Drag button for panning, or false to disable. |
| zoom | boolean | Enable scroll-wheel zoom. |
| zoom_step | number | Zoom step per scroll tick. |
| box_zoom_button | "left" | "right" | "middle" | "back" | "forward" | boolean | Drag button for box-zoom, or false to disable. |
| double_click_reset | boolean | Reset view on double-click. |
| double_click_ms | number | Double-click window in milliseconds. |