ankane / react-chartkick

Create beautiful JavaScript charts with one line of React
https://chartkick.com/react
MIT License
1.2k stars 58 forks source link

Viewport resize - React app #48

Closed jd-oconnor closed 4 years ago

jd-oconnor commented 4 years ago

When resizing the viewport (tested on chrome, firefox, and safari) the PieChart will resize correctly as it gets smaller, but will not resize when the viewport gets larger. Once I refresh the page, it will render the correct size. However, users that will be using this won't want to refresh the window every time they adjust the viewport larger in order for the chart to properly resize.

Original Size originalSize

Shrink window smallerViewport

Resize to be larger largerViewportAfterShrinking

ankane commented 4 years ago

Hey @joconnor-dev, unfortunately, I'm not sure how to reproduce. The charts resize as expected on the test page. I'd confirm the element that contains the chart is being properly resized.

ankane commented 4 years ago

Closing due to no response