d3js circle out of scrren

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

Also in JavaScript: