d3-mitch-tree
d3-mitch-tree copied to clipboard
Can you reduce spacing between groups of 'children' in boxed tree mode?
Is there a way to reduce this distance without the boxes overlapping? This doesn't seem to be configurable.
I'm using "Advanced Example Expand All Nodes.html" but just with these extra settings to prevent overlapping of boxes on the right hand side:
.getNodeSettings()
.setSizingMode('nodeSize')
.setVerticalSpacing(20)
.setHorizontalSpacing(50)
.setTitleBoxHeight(30)
.back()
Thanks! Nick
Had this issue, after scouring the code... found the solution.
On the constructor set the sizing mode and can set the spacing here...
new d3.mitchTree.boxedTree({nodeSettings: {verticalSpacing: 25, horizontalSpacing: 25, sizingMode: 'nodeSize'}})