d3 tree - parents having same children

Posted by Larry Anderson on Stack Overflow See other posts from Stack Overflow or by Larry Anderson
Published on 2012-09-19T21:20:40Z Indexed on 2012/09/19 21:37 UTC
Read the original article Hit count: 197

Filed under:

I've been transitioning my code from JIT to D3, and working with the tree layout. I've replicated http://mbostock.github.com/d3/talk/20111018/tree.html with my tree data, but I wanted to do a little more.

In my case I will need to create child nodes that merge back to form a parent at a lower level, which I realize is more of a directed graph structure, but would like the tree to accomodate (i.e. notice that common id's between child nodes should merge).

So basically a tree that divides like normal on the way from parents to children, but then also has the ability to bring those children nodes together to be parents (sort of an incestual relationship or something :)).

Asks something similar -> How to layout a non-tree hierarchy with D3

It sounds like I might be able to use hierarchical edge bundling in conjunction with the tree hierarchy layout, but I haven't seen that done. I might be a little off with that though.

© Stack Overflow or respective owner

Related posts about d3.js