Search code examples
javascriptlayouttreepositioning

Javascript positioning tree node


I need know the position on each node of this tree, I am using javaScript I am trying but still having problem on overlapping/spacing

a busy cat ![Family Tree]

I have child list of each node.
A=> C, B, D
C=> E, F, G
so on.

Please help me.


Solution

  • I found my solution here( tree_layout_lw.py ). Just convert this code to javascript & it's working very nicely.