Sorry this isn't a more minimal codepen but there's something seriously wrong with the category orders here: https://codepen.io/nicolaskruchten/pen/rNOKjpE
Note: the JSON here is basically what you'd get from PX in a Dash app when changing some filters.
Here is a slightly more minimal demo.
Seems like there is no problem with vertical bars: demo 1.
demo 2 illustrates that ther is no bug with vertical bars. So the issue appear to be only with horizontal ones.
Note that in the initial pen, there is no xaxis2.matches but there is yaxis2.matches ... if I add xaxis2.matches="x" to both in your vertical codepen the issue returns. So this is maybe related to matches with categories and react?
Possibly related: #4718