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