-
-
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
[Chart 3.0 BUG] xAxis labels disappear after a deep zoom in #1564
Comments
1. use axis.centerAxisLabelsEnabled instead of local variable to avoid dirty read 2. fix xAxis label missing issue
That is fixed. However, you should limit the maximum zoom in to a reasonable number. |
I guess that by "deep zoom in" you are referring to a zoom so deep the the distance between two labels is zero or close to zero. That's not a usable zoom anyway. Please limit the max zoom in available to the user. EDIT: Yeah, I meant "Infinite", and for some reason said "zero" |
'deep zoom in' means zoom in until you can't see any data entry in a line chart, or in bar chart, zoom in that the view can't hold a single bar. |
I have the same problem, I have three bars with points (x: 0, y: 1), (x: 1, y: 2), (x: 2, y: 3) and when I'm zooming the whole bar disappears. The same with labels, they disappears even earlier than bars. How to prevent this? |
xAxis labels disappear after a deep zoom in
Step to reproduce:
After triage, I found there are two issues:
1:
centerAxisLabelsEnabled
will be false after entryCount = 1.Change to below, xAxis.entries will have only 1 entry after zoom in.
2: I found in
After zoom in a lot
first
andlast
are the same value, causingn
to be default value, which is 1 (centerAxisLabelsEnabled is 1 now instead of 0 because above code change in # 1)The text was updated successfully, but these errors were encountered: