Stacked plotly barcharts not working since Version 1.44.0

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!

2 Likes

Facing a similar issue. Streamlit cloud isn’t rendering stacked barcharts. Stacked barmode works when app is run locally.

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?

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