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

Drill down charts #640

Open
stvanh opened this issue Sep 22, 2024 · 6 comments
Open

Drill down charts #640

stvanh opened this issue Sep 22, 2024 · 6 comments

Comments

@stvanh
Copy link

stvanh commented Sep 22, 2024

Hi everyone,

I would like to know if it's possible to make a drill down charts without using shiny? Could you please give me a simple example if possible. Thanks in advance.

@rdatasculptor
Copy link
Contributor

Can you show us an example of what you want echarts4r to do?

@stvanh
Copy link
Author

stvanh commented Sep 24, 2024

https://www.appsilon.com/post/echarts4r-tutorial-drill-down-bar-chart-in-shiny

Here is an example with drill-down chart but I would like to know if we can do the same without using shiny. Thanks in advance.

@rdatasculptor
Copy link
Contributor

My first thought is to use the e_morph() functionality for this purpose. It makes it possible to switch from chart to chart. And that is basically what you want, if I understand your correctly.

@stvanh
Copy link
Author

stvanh commented Sep 26, 2024

Really appreciate your suggestion. Not exactly what I seek but that may help. I'll wait for another suggestion.

@rdatasculptor
Copy link
Contributor

Just curious, Why exaclty isn't e_morph() a solution to your problem.
If you please, you can put the code here of the different charts that you want to add to your drill down. I can try to show what I mean with the e_morph-solution

@stvanh
Copy link
Author

stvanh commented Oct 12, 2024

Hi,

Here is what I would like:

tibble(
x = c("A", "B", "C"),
value = c(30, 50, 40)
) %>%
e_charts(x) %>%
e_bar(value)

Then:

  • When I click "A", the following chart would appear:

tibble(
x = c("A1", "A2"),
value = c(20, 10)
) %>%
e_charts(x) %>%
e_bar(value)

  • When I click "B", the following chart would appear:

tibble(
x = c("B1", "B2"),
value = c(20, 30)
) %>%
e_charts(x) %>%
e_bar(value)

I would also want to add a "back to original chart" button.

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