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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -