While adding charts to a project, I noticed it didn’t fill the space correct. I want it to expand to fill the whole space while preserving the aspect ratio.
I set the
perserveAspectRatio on the
xMidYMid meet, the
100%. Then I wrapped everything in a flexbox
<div>, and that seemed to do the trick.
- Does this work in non-chrome browsers?
- Does it work with really tall content?