Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up[BUG] Retina scaling no longer working in 2.4.0 (master branch) #3575
Comments
This comment has been minimized.
This comment has been minimized.
|
Can you drop an example (HTML + JavaScript), here or in a jsFiddle? |
This comment has been minimized.
This comment has been minimized.
|
Any example should do the trick (such as using the Getting Started example in the documentation). I would put together a JSFiddle but I don't think I can have it use 2.4.0 since it isn't released yet. If this is possible, let me know and I certainly will! But here are a couple screenshots: Using 400x400 with responsive set to false: With responsive set to true: Both charts appear as 800x800 and are twice as big as they should be. |
This comment has been minimized.
This comment has been minimized.
|
Yep, the Getting Started example will work. |
This comment has been minimized.
This comment has been minimized.
|
You right, it's broken since this commit change. I just didn't think about that retina case when only the canvas width/height are set. The proper way to size a chart (IMO) is to set the canvas style only: |
This comment has been minimized.
This comment has been minimized.
|
However, do we agree that the |
This comment has been minimized.
This comment has been minimized.
|
Ah, setting the width/height in style does indeed solve the issue! Thanks. And yup, the |
This comment has been minimized.
This comment has been minimized.
|
@Driklyn can you please pull latest master and confirm that it's fixed? |
This comment has been minimized.
This comment has been minimized.
|
Yep, looks good now whether you're using Thanks for the quick fix! |
This comment has been minimized.
This comment has been minimized.
|
thanks @Driklyn for verifying this |


Testing out the latest using the master branch (since I needed a new feature) and now my charts are twice as big and blurry.
I believe it is related to this commit.
Expected Behavior
Using a width/height of 640x480, a canvas is created like so:
Current Behavior
With
responsiveset tofalse, the canvas is created as:With
responsiveset totrue, the canvas is created as: