Essential Links
⚠️ Important note for users upgrading from version prior to 1.0.0-rc: the wheel/pinch/drag zoom behaviors are now configured separately, so some options have been moved an renamed:
zoom.enabled
-> zoom.wheel.enabled
and zoom.pinch.enabled
zoom.drag
-> zoom.drag.enabled
(enabling drag mode no longer disables the wheel/pinch modes)
zoom.speed
-> zoom.wheel.speed
zoom.wheelModifierKey
-> zoom.wheel.modifierKey
zoom.threshold
-> zoom.drag.threshold
Breaking Changes
- #507 Add the ability to enable both wheel and drag modes at the same time
- #478 Add zoomScale, rename doPan to pan, doZoom to zoom
- #476 Fix category panning
- #470 Combine range options, add minimum scale range
Enhancements
- #487 Add onPanStart and onZoomStart callbacks
- #484 Drag-to-zoom: filter clicks and pan.modifierKey
- #483 Make resetZoom accept UpdateMode argument
- #478 Add zoomScale, rename doPan to pan, doZoom to zoom
- #481 Expose zoomFunctions and panFunctions for customization
- #464 Refactor & export pan and zoom functions
- #457 Internal state handling
- #399 Feature: Zoom each scale separately
- #382 Added optional modifier keys
- #414 Add an ESM build
- #411 Use `start` and `stop` plugin hooks instead of `beforeInit`, `afterInit` and `destroy`
- #408 Compatible with Chart.js 3.0.0-beta7
- #390 Porting to CHART.JS 3 (using master)
Bugs Fixed
- #512 Fix drag threshold for single axis modes
- #504 Fixes invalid context onZoomComplete invocation
- #502 Add missing modifierKey properties to Options
- #495 Cancel all chart events while panning or dragging
- #494 Fix delta calculation at direction change
- #488 Fix drag-zoom and pan for non-linear scales
- #484 Drag-to-zoom: filter clicks and pan.modifierKey
- #485 Fix calling of onZoomComplete from wheel event
- #476 Fix category panning
- #474 Use static offsets for panning rounded time scale
- #472 Fix hook parameters
- #455 Refactor startHammer
- #451 Remove animationDuration option
- #429 Fix non-zoomable charts eating scroll events
- #434 Fix zoom on category scale
- #410 Properly call onZoom & onZoomComplete when pinching
Types
- #502 Add missing modifierKey properties to Options
- #469 Add missing return types
- #439 Reuse types from Chart.ts
- #438 adding typings for Zoom analog to chartjs-plugin-annotation
Documentation
- #505 Remove speed property from pan options in the samples
- #501 Adds note to click zoom sample
- #497 Adds drag effect options to the documentation
- #486 Add click-to-zoom example
- #477 Add API documentation (typedoc)
- #475 Add a sample for drag-to-zoom in docs
- #515 Removes 'undefined' as default because is not undefined
- #467 Fix minor typo errors in docs
- #466 Remove API section in README
- #462 Add sample on time scale
- #463 Correct zoom modifierKey docs
- #461 Changes zoom.threshold default to 0
- #459 Update README
- #456 Add initial docs
- #428 Changes script URLs for chart.js and hammer in order to use node_modules
Development
- #518 Bump version to 1.0, update dependencies
- #488 Fix drag-zoom and pan for non-linear scales
- #455 Refactor startHammer
- #454 Use fallback configration for scale types
- #452 Refactor to logical entities
- #416 Remove Bower
- #365 Fix no-mixed-operators lint warnings