violator_25April 21, 2017 at 6:29 am #7978
Could you help me? I’ve got this problem. My tree has two nodes. Weights are different (upper node is bigger). And upper node (which is big) is going beyond of the visible area (approximately on 30%). How I can fix it (to fit all nodes into visible area)?vizulyApril 21, 2017 at 6:33 am #7979
The tree does its best at setting the vertical spacing layout automatically, but you can define the layout yourself with the ‘branchPadding’ property. This property sets the vertical spacing as a percentage of the overall tree height. So you can experiment with different spacing like this.
The above would set the spacing between branches to roughly 10% of the height.
I hope that helps.
Tomviolator_25April 24, 2017 at 6:16 am #7983
Thank you, I’ll try your advice
Weighted Tree: Node is out of visible area
© 2018 — vizuly.io