chartjs / chartjs/chartjs-plugin-zoom
[BUG] I can't reach the left and right edge points on chart with zero offset of the line dataset after zooming and then panning
- Dominant language
- JavaScript
- Stars
- 623
- Forks
- 331
- Avg merge
- 7h 5m
- Merged PRs (30d)
- 7
Description
See the jsfiddle.
https://jsfiddle.net/aw1k9ys2/1/
If I zoom in and then pan to the left or right edge of the x-axis (using just pan) I can't reach the edge of the line.
#### * Try a few more times before saying it's not true.
It's like the extreme points on the x-axis are off the screen.
Despite all that your zoom plugin is a great product.
It always does what it's supposed to.
You just have to be careful to add a little more to make it better.
Kudos 🙇♂️ 👋
P.S.
If there is a way to manually act on some function inside the zoom plugin temporarily please report.
Consider that the graph must also perform the zoom.reset() correctly.
Contributor guide
Research direction
Start with the reproduction at https://jsfiddle.net/aw1k9ys2/1/ and repeatedly zoom, then pan to both x-axis edges using only pan. Trace the zoom plugin's edge handling for a zero-offset line dataset and verify how zoom.reset() behaves. Done means both extreme points are reachable after zooming and panning, while reset continues to restore the chart correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- chart.js, javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100