d3.js - is there any method to draw a tree with a root , the root's previous nodes and successor nodes? -
in d3.js, find tree layout cannot calculate previous nodes node, can draw successor nodes. layout dag can draw in d3.js?
couple of ideas might find useful:
you can use tree layout place nodes in canvas, create link objects pointing , forth, bind link objects diagonal.
http://www.durablejs.org/examples/flowchart/1/admin.html
you can use place nodes using pack layout, create link objects pointing , forth, , bind links bezier curve.
http://www.durablejs.org/examples/statechart/1/admin.html
you can find code graphs above:
https://github.com/jruizgit/durable/tree/master/lib/durabjevisual.js
Comments
Post a Comment