Plotly express :How to label a bar-chart with multiple traces?


This code gives me the desired chart. But how do i add the total labels for both cols ?

fig =, x=d[‘AXIS’], y=[‘col1’,‘col2’], barmode=‘group’,text=)

I succeeded to do it for one trace.

fig =, x=d[‘AXIS’], y=‘col1’, barmode=‘group’,text=d[‘col1’])

@marvy You can find the solution in the stackoverflow thread: python - How to label a grouped bar chart using plotly express? - Stack Overflow