When using a stacked bar graph, the legend reverses the order shown in the graph directly underneath. This forces the reader to do mental contortions to interpret the graph. And would undoubtedly be a one-line code change.
Example below with random metrics that don't make a lot of sense together to illustrate: