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

Blury display #9161

Closed
michcior2 opened this issue May 26, 2021 · 4 comments
Closed

Blury display #9161

michcior2 opened this issue May 26, 2021 · 4 comments

Comments

@michcior2
Copy link

Sometimes, display is blury. It depends on many factors in a page. Sometimes comes from scaling chain of the page. I found out, it was because my font size was 1.16rem.

It happens when the chart sets canvas width with a value with decimals. So, simple fix in the "retinaScale" function:
...
canvas.style.height = height.toFixed(0) + 'px';
canvas.style.width = width.toFixed(0) + 'px';

Setting "devicePixelRatio" does not solve this issue as good as the fix above.

make the fix permanent or optional.

Thanks.
Piotr.

@kurkle
Copy link
Member

kurkle commented May 26, 2021

@michcior2 what version are you using?

Asking because of #9015 that was released in v3.3

@michcior2
Copy link
Author

Chart.js v3.2.1

@kurkle
Copy link
Member

kurkle commented May 26, 2021

And can you confirm if v3.3.0 works for you or not?

@kurkle
Copy link
Member

kurkle commented Jun 5, 2021

Please reopen the issue if its not addressed by upgrading to 3.3

@kurkle kurkle closed this as completed Jun 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants