Line 111: | Line 111: | ||
nodeEnter.append("text") | nodeEnter.append("text") | ||
− | .attr("x", function(d) { return d.children || d._children ? - | + | .attr("x", function(d) { return d.children || d._children ? -15 : 15; }) |
− | .attr("dy", ". | + | .attr("dy", ".35em") |
.attr("text-anchor", function(d) { return d.children || d._children ? "end" : "start"; }) | .attr("text-anchor", function(d) { return d.children || d._children ? "end" : "start"; }) | ||
.text(function(d) { return d.name; }) | .text(function(d) { return d.name; }) |
Revision as of 04:33, 15 October 2016