-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
charts getting blurred when zooming out and then zooming back in #5485
Comments
Could you please give us some details ? |
@SimonLoir i am using chart.js version 2.6 and i have experienced the issue in both chrome and firefox, the issue arrises when the zoom is reduced to minimum and then increased back to 100% |
@EshaanSharma711 could you create a js fiddle that reproduces the bug ? I can't reproduce that bug myslef, nothing get blurred (with firefox 59.0.3 and chrome 66.0.3359.139). |
@SimonLoir i can provide you with an image of the error, as you can see in the image, the chart along with the tooltip got blurred, this happened when i zoomed out to 25% and then zoomed back in to 100% two times |
I can reproduce this issue in Chrome with this example and it seems related to our resize detection: when zoomed out to 25%, the canvas size changes but when zoomed back to 100%, it doesn't detect the resize and keeps the canvas with small dimensions. This only happens when zoom go below 33%, not sure why in that case we detect a resize. |
I can still reproduce this on master. It looks like resize events fire when increasing the zoom after getting down to 25%. Perhaps something is wrong in the scaling that takes place during the resize event |
when i zoom the window to extreme minimum i..e., 25% and then come back to 100% 2-3 times then the charts get blurred
The text was updated successfully, but these errors were encountered: