I’m moving a node in my d3.js graph using the following code:
d3.select("#"+ nodeid).attr("x",x);
d3.select("#"+ nodeid).attr("y",y);
This works fine, but when I start dragging on the node again, it ‘jumps’ back to its old position and starts moving from there.
Any ideas what I’m doing wrong here?
I ended up just adding this to the code as well