Create a multi barchart in Streamlit

I started to plot in my project with streamlit and using also plotly.express for barcharts. I had success to apply for one bar, but i would like to plot for more than one bar (ex: 2 or 3 KPIs to be plotted according to a site or product). How can I do it?

For one bar, follows my example below:

fig_a = df_selection.groupby('Site')['Clicks'].sum()
fig_aa = px.bar(
    fig_a,
    x=fig_a.index,
    y='Clicks',
    color_discrete_sequence=['#ffa500']*len(actual_month),
    template='plotly_white',
)
fig_aa.update_layout(
    plot_bgcolor = 'rgba(0,0,0,0)',
    xaxis=(dict(showgrid=False)),
    yaxis=(dict(showgrid=False))
)
st.plotly_chart(fig_aa)

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