Create Overlapped/Superimposed Barchart

You simply need to change the barmode argument to ‘overlay’.

Here is an example:

fig = {
    'data': [go.Bar(x=[1, 2, 3], y=[3, 1, 2]),
             go.Bar(x=[1, 2, 3], y=[0.3, 0.4, 0.1], width=[0.4, 0.6, 0.2])],
    'layout': go.Layout(barmode='overlay')
} 
plot(fig)

Note that the width argument can be given as a list, to show different widths for different bars, or you can supply one value, which will be used for all the bars of the trace.

Hope this helps!

5 Likes