-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Plotly Not Responsive When Parent Size Changes #3984
Comments
Unfortunately, until majors browsers start supporting If we can't call |
It should be pretty easy for plotly.js users to call Maybe we should add an example in our docs. @antoinerg would you be interested in making a quick codepen showing that off? |
Here's a proof of principle of using Note that one should probably turn responsive on for real usage to apply the appropriate CSS to grow and shrink in |
Looks like the observer compatibility is improving, although, it is still in draft. Thank you for the codepen. |
Is there any codepen for react also? I am stuck with the issue (When i open my sidebar the graph goes outside of parent div) |
Hi - we are currently trying to tidy up Plotly's public repositories to help us focus our efforts on things that will help users most. Since this issue has been sitting for several years, I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our backlog. Thanks for your help - @gvwilson |
Hi,
I am having issues with Plotly not resizing properly when the parent component changes in size. The plot has responsive set to true, but that only affects it in the case of a window resize, not a resizing of the parent component.
See this stackblitz for a reproduction of the issue. It highlights the issue both within a flexbox and when a scrollbar is introduced into the view.
The text was updated successfully, but these errors were encountered: