Order of a stack bar chart


I wondered how can I order the label of a stack bar chart in dash?
Specifically, from the image shown below, how can I put the orange bar to the leftmost. Thanks!

The order of the bars should be dependent on the order that they were supplied in inside the 'data': [...] list

@chriddyp, could this behavior (stacking relative to value) be added to stacked bar charts? This would be very helpful for a timeseries charts where the distribution of categories change over time.

At least using R plotly it seems the categories are sorted in alphabetical order starting from the center of the axis. Changing the order of the input data.frame has no effect.

Please see this related post.