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
Set the container style as a vertical flexbox: <div style={{ height: '100%', display: 'flex', flexDirection: 'column' }}>
Insert a div without explicit height props between the container and the chart
Add an arbitrary element above the chart
Resize the width of the container, and the chart will start to self-resize its height infinitely
Expected behavior
I understand this set up is problematic as the container with explicit height is supposed to be direct parent of the chart. However highcharts should not resize infinitely but either do nothing or fail with an explicit error
The text was updated successfully, but these errors were encountered:
Thanks for bringing up this issue, I agree it shouldn't resize the chart infinitely no matter the outer elements.
I did some more debugging, and it seems there's a problem with the reflow method in the Highcharts Core code. Since it's not directly related to the React integration, I highly encourage you to follow this thread for any further information.
Thanks for bringing up this issue, I agree it shouldn't resize the chart infinitely no matter the outer elements.
I did some more debugging, and it seems there's a problem with the reflow method in the Highcharts Core code. Since it's not directly related to the React integration, I highly encourage you to follow this thread for any further information.
My apologies for the inconvenience, Kind Regards!
Thanks a lot for the timely reply, followed the thread and closing this.
Reproduce link
https://stackblitz.com/edit/highcharts-react-template-9oig96?file=src%2FApp.js
Steps to reproduce
containerProps
suggested in How can I make a chart fill its parent div #72<div style={{ height: '100%', display: 'flex', flexDirection: 'column' }}>
Expected behavior
I understand this set up is problematic as the container with explicit height is supposed to be direct parent of the chart. However highcharts should not resize infinitely but either do nothing or fail with an explicit error
The text was updated successfully, but these errors were encountered: