RRO
March 28, 2025, 10:15am
1
Hello,
I discovered a small bug when using the new version ( Version 1.44.0 ). I got a problem displaying stacked barchats with st.plotly_chart.
The previous version displays the visual (with the same code) correctly.
fig.update_layout(
legend=dict(
title="tilte",
orientation="v",
yanchor="top",
xanchor="right",
bgcolor='rgba(255, 255, 255, 0.5)'
),
barmode='stack', # Stacked bars!
)
st.plotly_chart(fig, use_container_width=True)
Before update (Version 1.43.0)
After update (Version 1.44.0) :
Thank you!
3 Likes
Facing a similar issue. Streamlit cloud isn’t rendering stacked barcharts. Stacked barmode works when app is run locally.
Laup
May 5, 2025, 1:12pm
4
I had the same issue. Updating plotly to 6.0.1 solved it
Original message
Upgrade of plotly to latest version didn’t help to solve the same problem.
Sorry, but I have misinformed you. My plotly was not properly updated on the server. I have done it again and now my bars are stacked again!
Can you give a reproducible script which shows this issue even with the latest plotly?
system
Closed
July 7, 2025, 12:50pm
7
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.