Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Is double timeline possible? #644

Open
emantzo opened this issue Oct 13, 2024 · 1 comment
Open

Is double timeline possible? #644

emantzo opened this issue Oct 13, 2024 · 1 comment

Comments

@emantzo
Copy link

emantzo commented Oct 13, 2024

I would like to add a second timeline (instead of facet) to a barplot.
I tried to group by 2 vars but this is not working as expected (I get a mixed timeline).
Any smart workarounds?
Many thanks!!

A sample code...

mtcars |>
  tibble::rownames_to_column("model") |>
  mutate(total = mpg + qsec) |>
  group_by(cyl,gear) |>
  arrange(desc(total)) |>
  e_charts(model,timeline = TRUE) |>
  e_bar(mpg, stack = "grp") |>
  e_bar(qsec, stack = "grp") %>% 
  e_legend(selectedMode = "single")
@rdatasculptor
Copy link
Contributor

rdatasculptor commented Oct 13, 2024

To be honest,.I don't think that is possible (please correct me if I am wrong!). When I need an extra "timeline" I combine timeline with e_morph(). You could consider that as well

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

No branches or pull requests

2 participants