Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Displaying a D3 tree with multiple parents

I currently have this graph implemented and I'm hoping to keep the structure and collapsibility while depicting a child node having multiple parents. Is there a way to do this? I looked into force graphs but I'm also wanting to preserve a set hierarchy (meaning a parent at level 1 can have a child and level 3 shown). After a lot of research and tinkering with my current code, I am unable to figure my issues out. Is there anyone who has any experience with displaying a D3 tree node with multiple parents?

like image 599
Ally Avatar asked Sep 22 '15 22:09

Ally


Video Answer


1 Answers

Just in case anyone was wondering what I did to answer my question. I ended up making a force diagram behave in the same manner as a tree. This provided me the possibility of having multiple parents and I just had to do some fiddling with how the diagram used forces in order to preserve hierarchy.

like image 112
Ally Avatar answered Sep 22 '22 10:09

Ally