-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
Hide a node based on a condition #426
Comments
Hi, why not precomputing that data before passing it to the org chart and then just showing up that number inside nodes? I don't see why that logic has to be inside org chart |
Yes, I did that. I removed duplicate nodes from data then rendered the chart, but it’s not possible to see all the children if I want to since I removed from data |
I was wondering if there could be any easy way to implement this 😊 |
@ganeshpaharan can you add some kind of rough sketches of what you want, I might not be understanding it fully |
@ganeshpaharan can you also link an online sample where you tried my suggestion and faced the problem which you mentioned? You can extend this sample - https://stackblitz.com/edit/js-mfzkbs?file=index.html |
Hello Author,
Thanks you for your wonderful work & thanks very much for providing a solution for my previous request.
Is there a way to conditionally hide/show a node?
I'm working on a feature where expanding a particular node reveals multiple children with the same attributes. I'd like to show just one child node and display the number of similar nodes (essentially hiding the duplicates).
I also want this functionality to work when expanding all
Thanks in advance
The text was updated successfully, but these errors were encountered: