Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

e_flip_coords doesn't work with timeline #166

Closed
vituri opened this issue Jun 25, 2020 · 2 comments
Closed

e_flip_coords doesn't work with timeline #166

vituri opened this issue Jun 25, 2020 · 2 comments

Comments

@vituri
Copy link

vituri commented Jun 25, 2020

Try the following:

library(echarts4r); library(tidyverse)

mtcars %>% 
  mutate(
    model = row.names(.),
    total = mpg + qsec
  ) %>% 
  arrange(desc(total)) %>% 
  group_by(cyl) %>%
  e_charts(model, timeline = TRUE) %>% 
  e_bar_("mpg", stack = "grp") %>% 
  e_bar(qsec, stack = "grp") %>%
  e_flip_coords()

If we set timelime = FALSE it works:

mtcars %>% 
  mutate(
    model = row.names(.),
    total = mpg + qsec
  ) %>% 
  arrange(desc(total)) %>% 
  group_by(cyl) %>%
  e_charts(model, timeline = FALSE) %>% 
  e_bar_("mpg", stack = "grp") %>% 
  e_bar(qsec, stack = "grp") %>%
  e_flip_coords()

Any workaround?

@JohnCoene
Copy link
Owner

Thanks for flagging this @vituri, I've just pushed a fix, would you mind reinstalling from Github and trying again? thank you for your patience.

@vituri
Copy link
Author

vituri commented Jul 1, 2020

Works like a charm :)

Many thanks, John!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants