Plotly map looks asymmetrical

Hello to all the streamlite fans out there! Is there any way to make my plotly scattermapbox chart display perfectly horizontal along with the header and metrics?

I did not change any width parameter. I use only use_container_width:

st.plotly_chart(fig, use_container_width=True, config=config)

I want to move my map to the left so that it is on the green dashed line:

Hey @zona_comforta ,

great question!

Can you try updating the layout.margin to this:

fig.update_layout(
    margin=dict(pad=16, l=0, r=0),
)
2 Likes

@willhuang
Hi! Thanks so much for the quick response :relieved: It works!

1 Like