D3 tree - parents with identical children

I am rewriting my code from JIT to D3 and working with a tree layout. I copied the code from 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 wanted to create child nodes that merge back to form a parent at a lower level, which, as I understand it, is more connected with the structure of the directed graph, but I would like the tree to correspond to this (i.e., note that common identifier between child nodes must merge).

So, basically a tree that shares, as usual, on the way from parents to children, but then also has the opportunity to combine these nodes of children as parents (for example, incremental relationships or something else :)).

Asks for something like → How to place a hierarchy without a tree with D3

It looks like I could use a hierarchical edge binding in combination with a tree hierarchy layout, but I have not seen this. Perhaps I am a little from this.

+5
source share
1 answer

I am working on a library called dagre to host oriented graphs in JavaScript. We have an example of how it can be used with D3 . Perhaps this fits your needs?

+4
source

All Articles