A variation on the elbow dendrogram, though using the tree layout. A couple notes: a custom separation function is used so that the distance between sets of parents is half the distance between parents themselves; the tree layout draws the leaf nodes at the right extreme of the layout, so a large right margin is used to inset the leaf nodes; the leaf nodes also have a custom path (d.target.children
is null).
In response to a Stack Overflow question.