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 badges1 Answer
Reset to default 4I'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
版权声明:本文标题:javascript - d3 tree - parents having same children - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744397670a2604303.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论