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

How to change root initially to some other id #321

Open
harshavardhannarla opened this issue Oct 30, 2023 · 3 comments
Open

How to change root initially to some other id #321

harshavardhannarla opened this issue Oct 30, 2023 · 3 comments

Comments

@harshavardhannarla
Copy link

Instead of starting the chart from the most top id, how to start from chosen node and can have a button to show one level to top of that.

@bumbeishvili
Copy link
Owner

bumbeishvili commented Oct 31, 2023

Not easily possible, you have to manipulate the data by yourself and rerender the graph every time, I'd tell you before that it was snot possible, but I've seen some people do it, so maintain a separate hierarchy and only pass the partial hierarchy you want chart to draw

@harshavardhannarla
Copy link
Author

I did this, now I can go to one level up but all the user interactions are lost as I am redrawing by passing hierarchy everytime. Is there a way to take the user interactions state or something like that outside?

@bumbeishvili
Copy link
Owner

Can you reproduce the issue?

You can fork this sample - https://stackblitz.com/edit/js-rvwpza?file=index.html

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