@shyann
In order to completely stop the zoom behavior in a d3 graph, you can do the following:
1
|
svg.call(d3.zoom().on("zoom", null)); |
This code removes the zoom behavior from the "svg" element, where "svg" is the variable holding your d3 graph element.
1
|
svg.on(".zoom", null); |
This code removes all zoom event listeners from the "svg" element, preventing any zoom interactions from occurring.
By following these steps, you can completely stop the zoom behavior in a d3 graph.