text.attr("transform", function(d) { return "translate(" + d.x + "," + d.y + ")"; });