-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Chart reflow on container dimension change instead of window resize #17924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @Bartozzz! A similar idea has already been discussed and tested here: #6427 (comment) From what I can see, right now it is widely supported through multiple browsers. |
Absolutely @karolkolodziej! Will you have a go? |
Stumbled upon the same issue. Would be great to have it fixed. |
I'm struggling with it as well... |
Hey @karolkolodziej, this fix is quite important for us – when can we expect this feature to roll out? Is there an ETA? If not – what is the recommended hotfix? Should we use |
@Bartozzz There are some cavities of this solution that we have to discuss before proceeding with that fix and unfortunately there is no ETA for now. |
Related to #6707.
Description of the feature
Right now, charts gets reflowed on window resize. Because of that, there's no automatic reflow on layout shifts. It would be nice to get reflow on changes to the dimensions of a chart's container instead.
Library related to the feature
Highcharts
Proof of Concept/Live example for the feature
Instead of listening for window resize here:
highcharts/ts/Core/Chart/Chart.ts
Lines 1815 to 1847 in 561e76d
We could use a ResizeObserver and listen for dimensions changes of the
chart.renderTo
element.You can vote for this feature by adding a thumbs-up reaction to this post.
The text was updated successfully, but these errors were encountered: