Skip to content
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

Closed
EshaanSharma711 opened this issue May 11, 2018 · 6 comments · Fixed by #6974
Closed

charts getting blurred when zooming out and then zooming back in #5485

EshaanSharma711 opened this issue May 11, 2018 · 6 comments · Fixed by #6974
Milestone

Comments

@EshaanSharma711
Copy link

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

@SimonLoir
Copy link

Could you please give us some details ?
On what browser have you experienced this behaviour and which version of chart.js are you using ?

@EshaanSharma711
Copy link
Author

EshaanSharma711 commented May 11, 2018

@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%

@SimonLoir
Copy link

@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).

@EshaanSharma711
Copy link
Author

@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

untitled1

@simonbrunel
Copy link
Member

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.

@etimberg
Copy link
Member

etimberg commented Jan 2, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants