You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What you described is actually the desired behaviour in the current specs. plotly.js does not sort categories. Categories are listed in the order where they are supplied in the data.
So, the categories in the first trace come first then the categories in the second trace either get paired up with the categories already present or are appended at the end of the category list.
We are planning on adding more control to categorical axes. See #189 for more details. So I'll mark this issue as a duplicate.
Here's an example: http://codepen.io/anon/pen/vLbXQX
The traces are:
Resulting plot is:

Notice how the values for 4 & 5 are at the end of the X axis.
It doesn't happen all the time, for example if we switch the order of
trace1
andtrace2
, it gets drawn properly:Is it me holding it wrong or an actual issue?
The text was updated successfully, but these errors were encountered: