echarts4r icon indicating copy to clipboard operation
echarts4r copied to clipboard

Axis was not rendered correctly when distribution is very disperse.

Open happyshows opened this issue 5 years ago • 1 comments

    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")

image image

happyshows avatar Sep 13 '18 15:09 happyshows

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.

JohnCoene avatar Sep 14 '18 08:09 JohnCoene