I can add a title
to all the nodes in the tree with
node.append("svg:title").text(function(d) { return d.name + " " + d.size });
How can I add the title
only to the the leaf nodes?
I tried:
node.selectAll('g.leaf.node text').text("title", function(d) { return d.name + " " + d.size });
but this didn't work.
example with titles on all nodes