echarts4r
echarts4r copied to clipboard
Axis was not rendered correctly when distribution is very disperse.
src %>%
mutate(cut = as.character(cut)) %>%
inner_join(bin, by='cut') %>%
e_charts(bin) %>%
e_bar(count, barWidth = 20, barGap = '100%') %>%
e_y_axis(type = 'value',name = '',splitLine = list(show=F), show = F) %>%
e_x_axis(type = 'value',name = '',splitLine = list(show=F)) %>%
e_tooltip() %>%
e_theme("walden") %>%
e_datazoom(x.index = 0) %>% e_toolbox_feature(feature = "restore")
Can dput
the data (src
) so I can take a look? Axis work in a somewhat mysterious way.
EDIT You can check the source code of e_histogram
, namely passing scale = TRUE
in e_x_axis
.