You can play around with the offset
, width
and base
properties of each trace when using a stacked layout.
With base = 0
the trace is excluded from the stacking.
In Python:
notStacked = go.Bar(
base = 0,
width = 0.4,
offset = 0.0,
marker = dict(color = “rgb(0,120,255)”)
)
stacked1 = go.Bar(
width = 0.4,
offset = -0.4,
marker = dict(color = “rgb(250,60,0)”)
)
stacked2 = go.Bar(
width = 0.4,
offset = -0.4,
marker = dict(color = “rgb(250,130,0)”)
)