You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Responsive charts are distorted if you specify a max-width or max-heigth on the canvas element or it's parent.
I've made a fix in the following gist (sorry for the lack of proper commit). Please notice that it use getComputedStyle, so it won't work on IE<9. If you want legacy support you'll got to do some polyfilling.
Yeah, we'll need a proper commit! This looks great, but we need a way to test it in our builds. Could you pull down the latest v2.0-dev branch and submit a PR?
Responsive charts are distorted if you specify a
max-width
ormax-heigth
on thecanvas
element or it's parent.I've made a fix in the following gist (sorry for the lack of proper commit). Please notice that it use
getComputedStyle
, so it won't work on IE<9. If you want legacy support you'll got to do some polyfilling.https://gist.github.com/ywg/6cdb2d43ab535249a8a8
The text was updated successfully, but these errors were encountered: