Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Resolution low on hi-dpi screen #1

Open
ArchaicDuck opened this issue Oct 21, 2018 · 0 comments
Open

Resolution low on hi-dpi screen #1

ArchaicDuck opened this issue Oct 21, 2018 · 0 comments

Comments

@ArchaicDuck
Copy link

ArchaicDuck commented Oct 21, 2018

I have a hi-dpi screen and the canvas resolution is really low.

I know this is a canvas problem and easily fixed by scaling the canvas to double, then halving it with css styling. But I could not properly do it without breaking the chart.

Example code:
`canvas.width = 2000;

canvas.height = 2000;

canvas.style.width = "1000px";

canvas.style.height = "1000px";`

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant