Hi @adhawkins Iām not sure if I understood your last post. If you wanted to create a bar graph with the data provided, you could do something like that.
data = [
{
"user": "andy",
"1": 2,
"2": 20,
"3": 30,
"4": 20,
"5": 10,
"6": 5,
"Fail": 3
},
{
"user": "james",
"1": 3,
"2": 21,
"3": 31,
"4": 18,
"5": 8,
"6": 5,
"Fail": 14
}
]
df = pd.DataFrame.from_records(data)
fig = px.bar(df, x='user', y=df.columns[1:], barmode='group')
fig.show()
Concerning the percentages, I tried to figure out how these are calculated but it took me too long
I even think, it might be a bug. If you comment out the color
parameter of your original graph, the percentages sum up correctly. This has also been reported here.