I want to arrange in chronically order by month name but it is always shown according to highest value (like it should be January, February, March, April) but it is(January, March, February, April) (according to highest value)
plot_ly(cipltdyearstore1, labels = ~Month, values = ~TOTAL, type = 'pie', textinfo = 'none',
hoverinfo = 'text',
text = ~paste(Month,',',TOTAL),key = ~key) %>% add_pie(hole = 0.6) %>%
layout(xaxis = list(type = "category"))