You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: