score:1

Accepted answer

you could try fixing the position of the svg element, create a group under it and translate the group when any of the object is dragged. in this question you can find more details about this approach:

svg dragging for group

score:5

the drag behaviour needs to be called on the selection whose position you're updating during the drag. in your code, you are updating the position of the parent node, which causes strange "jittering", because the drag position is itself relative to the parent node.

for example, you could replace your move function above with:

function move() {
  d3.select(this)
      .attr("transform", "translate(" + d3.event.x + "," + d3.event.y + ")");
}

Related Query

More Query from same tag