chartjs / chartjs-plugin-zoom

Zoom and pan plugin for Chart.js
MIT License
598 stars 327 forks source link

Pan function does not work properly when there are many points #815

Open MamatAdv opened 7 months ago

MamatAdv commented 7 months ago

I am using Chart.js in an Angular application. When zooming in, the pan function does not work properly when there are many points. Only the range from the beginning to the end can be displayed. When the range displayed contains more than 650 points, the issue arises. If I zoom to display fewer than 650 points, it works correctly.

example: https://stackblitz.com/edit/angular-chartjs-plugin-zoom-bnevsf

mateuszpalosz2 commented 7 months ago

Any updates on this?

happybole commented 6 months ago

I met the same problem. https://startbitcoin.org/trendline/

kurkle commented 2 weeks ago

The y-scale is updating its range automatically to data, is that what you mean? If that is not desired, you need to set min/max manually for the y-scale.