admin管理员组

文章数量:1403516

I have been transitioning my code from JIT to D3, and working with the tree layout. I have replicated the code from .html with my tree data, but I wanted to do a little more.

In my case I wanted 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 acodate this (i.e. notice that mon 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.

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

In my case I wanted 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 acodate this (i.e. notice that mon 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.

Share Improve this question edited May 23, 2017 at 12:30 CommunityBot 11 silver badge asked Sep 19, 2012 at 21:20 Larry AndersonLarry Anderson 5931 gold badge6 silver badges17 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 4

I've been working on a library, called dagre, for laying out directed graphs in the JavaScript. We have an example for how it can be used with D3. Maybe this suits your needs?

本文标签: javascriptd3 treeparents having same childrenStack Overflow