TnT tree example showing different labels in the same tree using tnt.tree.label.composite. The transformation of each label in the composite label is calculated based on their cumulative width + 10 pixels to allow some extra space between them. But because the branch length label is not aligned to the node's name label, we set its width to -10. This makes the node's name label to display right next to the nodes.
Modified http://d3js.org/d3.v3.min.js to a secure url
Modified http://tntvis.github.io/tnt.tree/build/tnt.tree.min.js to a secure url
https://d3js.org/d3.v3.min.js
https://tntvis.github.io/tnt.tree/build/tnt.tree.min.js