Plotly Chart with in Streamlit..does not fit to page

Hi ,
When I am using the plotly itselft , I can see the chart is spread across the page.
But when I am using the same chart with in streamlit the size is compressed and it is not in full witdh. Is there any way we can do the settings for streamlit. I am attaching both the files for a comparision…
Plotly Graph using -

fig.show()

plotly_graph

Same Graph when called from Streamlit -

st.plotly_chart(fig)

Please guide if anything missing here or how can I achieve it …

Thanks,
Mj

Try the autosize option using “update_layout”, you can also set the desired size. You can read the full reference at Layout with Python