score:3

Accepted answer

you can change the position of an svg object (like a group) element with translate.

for example:

<g transform="translate(20,20)"></g>

check a live example here: http://jsbin.com/zajij/1/

in d3 you can add an attr to add this transform

.attr("transform", "translate(20,20)");

hope this helps!


Related Query

More Query from same tag