-
vizulySeptember 18, 2017 at 9:05 am #8052
Hello Pretty,
The Tree supports a label function in viz.label(); You can pass in your own function that will determine how to trim labels. For instance for your use case you may do something like this:
viz.label(function (d) {
if (d.children) {
return String(d.myLabel).substr(0,5);
}
});I hope that helps to point you in the right direction. Also you can adjust he spacing between branches by adjusting the size of the tree or adjust the span between nodes by explicitly setting viz.fixedSpan(mySpanInPixels).
Cheers,
Tom
You must be logged in to reply to this topic.
© 2024 — vizuly.io