Line 164: | Line 164: | ||
nodeEnter.append("text") | nodeEnter.append("text") | ||
− | .attr("x", function(d) { return d.children || d._children ? - | + | .attr("x", function(d) { return d.children || d._children ? -20 : 20; }) |
.attr("dy", ".35em") | .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"; }) |
Revision as of 02:21, 17 October 2016