I have some questions.
I utilized a force graph and added zoom functionality to it.
However, when I drag the mouse over the blank area, the force graph keeps jumping erratically.
Is there a way to prevent the graph from jumping? Thank you.
(I apologize for any errors in my English. Thank you again.)
This is the code I used for zooming:
var zoom = d3.behavior.zoom()
.scaleExtent([1, 10])
.on("zoom", zoomed);
function zoomed() {
svg.attr("transform", "translate(" + d3.event.translate + ")scale(" + d3.event.scale + ")");
}