Plotly Chart - Same Height with Width

Hey guys,

Basically I added a pychart to my column and I set its width as the column width usingst.plotly_chart(fig, use_container_width=True). The thing is I cant set the height of the chart so it’ll have the same value as width. I don’t want to set an integer value. Any idea how can I do that?
See the image below👇. There is a huge gap between the markdown list and the chart.

You may want to try the “update_layout”, it has an autosize option and you can define the width and height. More details can be found at the following Plotly page Layout with Python

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.