I have this dataframe:
rules weight percentage
r1 40 40%
r2 20 20%
r3 10 10%
r4 10 10%
r5 10 10%
r6 5 5%
r7 5 5%
r8 0 0%
r9 0 0%
and I want to create a stacked bar chart in plotly, but in one column. A plot of this kind. 
I have tried:
fig = px.bar(df, x="percentage", color='rules', orientation='h',
height=400,
title='rules')
fig.show()
but the result is not the same.
The results looks like this graph, the numbers aren't the same, because I have created a toy example for this question.

