Black Lives Matter. Please consider donating to Black Girls Code today.

Revers the Order of each stacked bar chart from bottom

I am using stacked bar chart. I want to arrange bars in that stack in reverse order. If by default it is Bar A and on top Bar B, when rendered I want Bar B and on Top Bar A regardless of any condition. Could we do something like this? I am using React Plotly.

Without re-ordering of traces, I don’t think this is currently possible.
You could open a feature request here: https://github.com/plotly/plotly.js/issues

Tracked in https://github.com/plotly/plotly.js/issues/4493.