-
vizulyAugust 25, 2016 at 10:24 am #6423
Hello Yong,
The tree has a couple of options for sizing.
The default is dynamic sizing, where you set the width and height of the tree and it does its best to dynamically size each node to fill the space you specify in the height/width property.
You can adjust this dynamic sizing by using the “branchPadding” property, which will alter the scale as a percentage of the viz height.
If for instance you had only 3 primary nodes try setting
viz.branchPadding(.07)
, and you will see the nodes are a more reasonable size.If you want to be a little more adventurous you can easily alter the scales being used within the viz my modifying the code of src/viz/weightedtree.js and adjusting the scales.
– Tom
You must be logged in to reply to this topic.
© 2024 — vizuly.io