Hi
I am drawing a graph using chart.js. Below is my code.
zoom works fine. However, there is a little problem.
If the mouse leaves the chart while dragging, it will not zoom in properly.
Like the first picture, the starting point of the drag is 2023, and the end of the drag is outside the chart, not inside the chart.
The starting point of drag is 2023, but as shown in the second picture, 2011 became the starting point.
Is there any way to prevent this?
Hi I am drawing a graph using chart.js. Below is my code. zoom works fine. However, there is a little problem. If the mouse leaves the chart while dragging, it will not zoom in properly. Like the first picture, the starting point of the drag is 2023, and the end of the drag is outside the chart, not inside the chart. The starting point of drag is 2023, but as shown in the second picture, 2011 became the starting point. Is there any way to prevent this?
Thanks,