Maximize the width of a Plotly figure #1039
Replies: 2 comments 1 reply
-
Hey @paumartinez1! For def autosize():
fig_widget = solara.get_widget(fig_el)
fig_widget.layout.autosize = True
solara.use_effect(autosize, dependencies=[]) This doesn't seem to work with Plotly at (or above) version 6, due to their move to use Anywidget. I'll look for a potential solution when I have more time! Note: I explained autosizing the width, but setting the layout's height to "100%", or similar in different units should work for height |
Beta Was this translation helpful? Give feedback.
-
Hi @iisakkirotko! Thank you so much for this! Is there a way to fill up the entire height/vertical space as well? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm using Plotly to generate a scattermap, but I'm encountering issues on maximizing the height and width of the chart. I want the height and width to be responsive to the screen size. Any thoughts? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions