Plotly graphs too narrow when responsive

My plotly graphs are too narrow on mobile, giving a tall and unaesthetic look. How can I make them wider?

Hi @edardvark ,

Welcome to the Streamlit Community Forum :partying_face:

How about using st.column or perhaps, st.container . Probably that might help in this case.

Best
Avra

1 Like

You may want to try the “update_layout”, it has an autosize option.

fig.update_layout(
autosize=True,
width=400,
height=400)

More detail can be found at Layout with Python

2 Likes