Open sactyr opened 8 months ago
mhhh this is much more complex that I thought because it has to work for different types of graphs, with x and y as integers, etc..
I should not have created coord_flip
With echarts.js you should just be able to
df <- data.frame(
x = 1:12 # e.g. typically for months in integer
,y = runif(12)
)
df %>%
e_charts(y) %>%
e_bar(x)
I understand x_axis should always be categorical but perhaps we could put in class check i.e.
is.character
oris.factor
ine_flip_coords
to force an error, instead of silently generating an incorrect chart? Thank you for this great package!With non-categorical x-axis
With x-axis turned into factor