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

labels don't take scale into account #4

Open
greggman opened this issue Mar 23, 2013 · 0 comments
Open

labels don't take scale into account #4

greggman opened this issue Mar 23, 2013 · 0 comments

Comments

@greggman
Copy link

Go into examples/Axis.html and at line 32 set scale to 2 then view the page. It seems like all of the labels need to have their screen position multiplied by scale? I'm not sure where to do that. Seems like some where around line 6854 but I'm not sure how to access the scale value at that point.

Note that if you set set scale to

scale: window.devicePixelRatio ? (1 / window.devicePixelRatio) : 1

Then you'll get high res renderings on HD-DPI displays. Of course you might want an option to change the line thicknesses by the scale factor as well? Although I think it looks good as is with thinner lines on HD-DPI.

Maybe there's already a way to make it handle HD-DPI I'm not aware of?

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

No branches or pull requests

1 participant