-
violator_25April 21, 2017 at 6:29 am #7978
Hello, Vizuly!
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 #7979Hello,
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.
myTree.branchPadding(.1).update();
The above would set the spacing between branches to roughly 10% of the height.
I hope that helps.
Tom
-
|
You must be logged in to reply to this topic.