When I was writing tests for #241, I came across this problem where the bar chart x-axis factor level order is wrong.
R code:
set.seed(23049)
long_items<-data.frame(cat1= sample(x=LETTERS[1:10], size=100, replace=TRUE),
cat2= sample(x=LETTERS[1:10],
size=100, replace=TRUE))
p<- ggplot(long_items, aes(cat1, fill=cat2)) + geom_bar(position="dodge")
py$ggplotly(p)
ggplot2 figure:

Note the figure above has the x-axis in alphabetical order.
Plotly figure (based on PR #241): https://plot.ly/~13bzhang/1365/count-vs-cat1/

Now the x-axis is not in alphabetical order.
@cpsievert@chriddyp@mkcor
When I was writing tests for #241, I came across this problem where the bar chart x-axis factor level order is wrong.
R code:
ggplot2 figure:

Note the figure above has the x-axis in alphabetical order.
Plotly figure (based on PR #241): https://plot.ly/~13bzhang/1365/count-vs-cat1/

Now the x-axis is not in alphabetical order.
@cpsievert@chriddyp@mkcor