I need to pan and zoom in a simple d3 node graph with d3 version 7.
const svg = d3.select("#network_graph")
.attr("viewBox", [0, 0, width, height]);
There doesn't seem to be any documentation / tutorial on how to use d3.zoom with v7 and this functionality has significantly changed in v7. The two sources I can find refer to specific maps renderings, I just need to zoom into a simple div with viewbox.
Can anyone help?