[line chart] Can I prevent pan from panning into empty space outside the data range? Can I 'lock' the chart's visible area? #777
Unanswered
respectabiggle
asked this question in
Q&A
Replies: 1 comment
-
Hello, If i'm not mistaken, you can set a min and max value for any axis in options.plugins.zoom.limits.axisID. In your case, it'd be options.plugins.zoom.limits.x.min and options.plugins.zoom.limits.x.max.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently (default behavior), I can pan to the left or right past all my data points, into empty space. (mode: 'x')
Can I lock/limit/boundary the chart somehow, so that one cannot pan outside of the range of data points?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions