How to create a grouped bar chart with a date selector and multiple columns for y-axis

Hi @sdmcs,

here you go :wink: :

import plotly.express as px
import pandas as pd

# df_users_community = pd.read_excel() ??

communities = ['bm_cnt', 'cp_cnt', 'fm_cnt', 'res_cnt', 'spu_cnt', 'sr_cnt'] # or df_users_community.columns[3:]

fig = px.bar(df_users_community, x='community_name', y=communities, animation_frame='event_dt', 
             labels={'variable':'categorie, whatever', 'value':'count,value,whatever'}, 
             barmode='group', title='your title')
fig.show()

have a look at plotly-express. It simplifies, A LOT, plotting data in dataframes structures:

Merry christmas !

Alex-

2 Likes