Open seachel opened 6 years ago
First solution:
Have width as field for each tree. The width will need to be found through trial and error for each example.
Later solution:
Find width of largest node and compute width of tree. Add in spaces, multiply by width of widest node.
Parent Issue
If the d3 tree width can be updated, then pass the new width once the tree has been fully formatted and laid out.
Have a running sum of the width.
Otherwise, consider creating the tree with node size rather than tree size.