With chartjs-plugin-zoom
-plugin for ChartJS I am trying to separate x- and y-axis zoom when the user scrolls above an axis. I can not get this working and I am now wondering if this might not be possible. I expected this to be possible through the overScaleMode
-argument, like displayed in the below configuration. This did not make the appropriate changes.
plugins: {
zoom: {
pan: {
enabled: true,
mode: 'xy',
},
zoom: {
enabled: true,
mode: 'xy',
overScaleMode: 'xy',
}
}
}
How can I implement this zoom behaviour?
As an alternative I am thinking about adding buttons besides the graph to turn the one the zoom-directions on or off. Or are these type of buttons already implemented into the software (or through another plugin)?