-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minPadding and maxPadding Ignored after Zoom/Pan #16915
Comments
Hi @jdhernley, thank you for creating a ticket with your issue! I think there's no need to add this into a core because it can be easily achieved by synchronizing extremes with a main xAxis and navigator's xAxis. Works with basic features, like e.g. changing extremes, see a demo: https://jsfiddle.net/BlackLabel/8xu0jtpn/ Definitely, I wouldn't consider it as a bug. Is the above solution OK for you? If yes, please let me know so we can close the ticket as resolved. |
|
Closing due to inactivity. |
@karolkolodziej Why is this closed "due to inactivity"? The problem obviously still exists and I am also waiting for a solution. |
You are right! The issue is still visible and I was misled by the labels! |
Thank you :-) |
A very simple workaround could be to update the navigator's xAxis with new min and max padding: https://jsfiddle.net/BlackLabel/f15uL7b4/ (at this moment we force max and min padding to be zeroed) |
Expected behaviour
After creating a graph with a min and max padding, zooming in and zooming back out with the navigator should maintain the min and max padding.
Actual behaviour
Any sort of zooming eliminates all the padding on the graph forever.
Additionally, grabbing the middle of the navigator and panning the mouse without actually changing the zoom extremes also removes the padding.
Live demo with steps to reproduce
https://jsfiddle.net/1qbzmjao/
The padding will be gone.
Additionally:
The padding will be gone.
Product version
v9.2.1
latest.
Affected browser(s)
All
The text was updated successfully, but these errors were encountered: