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

Node/parent missing #441

Open
ABIRWD opened this issue Oct 23, 2024 · 2 comments
Open

Node/parent missing #441

ABIRWD opened this issue Oct 23, 2024 · 2 comments

Comments

@ABIRWD
Copy link

ABIRWD commented Oct 23, 2024

Hi bumbeishvili,

first of all, thanks for such an amazing and useful visualization. I have a question I hope you can answer. Our data will be chaning as time goes by and there will be times when a manager leaves and the people bellow that node would be "floating" until a new manager is assigned.
The org-chart shows a message for Missing:###### when the parent node is not present.
Is there a way to ignore these branches, display them as a new tree, or add it directly to the top level node?

I can always try to do this on the data side, but just wanted to see if there is a way to achieve this on the visualization level.

Thanks,
AB

@bumbeishvili
Copy link
Owner

bumbeishvili commented Oct 23, 2024

You can have one root node, which is hidden, and make it parent of these nodes, as well as for general root

https://stackblitz.com/edit/js-qm3aga?file=index.html

@ABIRWD
Copy link
Author

ABIRWD commented Oct 25, 2024

Perfect! This example helped me understand more functionality and how to overcome the issue we have.
Thanks!

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