dagrejs / dagre-d3

A D3-based renderer for Dagre
MIT License
2.83k stars 589 forks source link

Family Tree #61

Open azarai opened 10 years ago

azarai commented 10 years ago

Noticed that i had to split my questions up. Same topic as https://github.com/cpettitt/dagre/issues/130 (http://jsfiddle.net/aJg2G/4/)

cpettitt commented 10 years ago

You can draw the edges yourself by overriding drawEdgePaths and positionEdgePaths. You can look at their implementation for a starting point.

You can remove the arrow by removing the following line from defaultDrawEdgePaths:

.attr('marker-end', 'url(#arrowhead)');

Alternatively you could change the definition of #arrowhead either directly, overriding postRender, or using an undirected graph (Graph instead of DGraph).

chrisvfritz commented 9 years ago

I'm not sure this is up to date. I don't see drawEdgePaths or positionEdgePaths in the source.