-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Allow setting maximum y-scale factor #388
Conversation
Hey noais, thanks for your PR! There is a issue about maxScaleY:#256. You will see Daniel said So I hope you could read the post, and test more. It's not as easy as you would think first about maxScaleY :) |
I implement this because there aren't a way to stop the zoom in on the y axis, like the x axis. With this feature Is possible avoid labels duplicated. I implemented this because I have the same issue like #315 |
I need to read more carefully the issue #256 because I don't get the problem. |
@noais, I remember the problem I had is for horizontal bar chart. I don't know why maxScaleY is complcated as @danielgindi said, but when I think I face the same problem, horizontal bar chart's xAxis is like yAxis, and the maxScaleX issue on horizontal bar chart is same as maxScaleY issue on bar chart I guess. Anyway, you may want to test more on bar/line/horizontal bar chart for maxScaleY. @danielgindi, do you remember why maxScaleY is complicated? |
@liuxuan30 I found this wrong behaviour: When we zoom in and the limit is past, zoom in is stopped but the chart is scrolling to up side. This can be resolved when we have the max Y we can block the all zoom in events. |
This problem happen with setMaximumScaleX and this is already in the main project. This behaviour must be fixed, for both cases beyond this problem I don't see what issue can have maxScaleY specifically? |
if you are confident, just test different charts as many as possible with different situations. |
There were a few reasons:
But this is fine as a solution for the time being - as it seems to work in "normal" situations. Thanks :-) |
No description provided.