Just started using plotly and love it!
However I’m struggling figuring out how to order the elements in the y-axis of a bar chart as I would like. I added a simple example here:
Here I would like to order them by name1, name2, name3, … Basically you see the increasing contribution of different types of contributors. I want the color coding of the category to be mixed. Please help!! I’m working via the website.
Dear @etienne,
I found I can order the categorical axis by setting the “categoryorder” and “categoryarray”, when I first plot it, however the “relayout” doesn’t seem to support this:
You can see the order changed if I specify that in the “layout” before plot, but the “relayout” doesn’t work. I wonder is there any way to reorder the plotted chart? Thank you!
I have a scatter trace because I’d like the points to be selectable. Then essentially the y axis is not categorical any more, so the “categoryorder” trick seems not working…