Skip to content

Blury display  #9161

@michcior2

Description

@michcior2

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions