I'm trying to create a double bar stacked bar chart using plotly. I found this code: from plotly import graph_objects as go data = { "original":[15, 23, 32, 10, 23], "model_1": [4, 8, 18, 6, 0], "model_2": [11, 18, 18, 0, 20], "labels": [ "feature", "question", "bug", "documentation", "maintenance" ] } fig = go.Figure( data=[ go.Bar( name="Original", x=data["labels"], y=data["original"], offsetgroup=0, ), go.Bar( name="Model 1", x=data["labels"], y=data["model_1"], offsetgroup=1, ), go.Bar( name="Model 2", x=data["labels"], y=data["model_2"], offsetgroup=1, base=data["model_1"], ) ], layout=go.Layout( title="Issue Types - Original and Models", yaxis_title="Number of Issues" ) ) Source: https://dev.to/fronkan/stacked-and-grouped-bar-charts-using-plotly-python-a4p This works, but I need to take it one step further if possible. I need the various models to able to appear on either side of each set of bars as I'm adding another parameter (yes on the left and no on the right). In the example, blue is always on the left bar and orange and/or green are always on the right. I'm looking for a way so that any of those colors could appear on both the left and right of a set of bars, but with different values. i.e. in the example feature has a blue bar count of 15, but maybe on the right side of feature blue has a value of 5. Continue reading...