I am trying to develop a graph visualization webpage using d3, and I need to provide basic zoom and pan functionality over the graph.
I saw the d3.behaviour.js file to see how the zoom functionality works. It is fine as far as the default behavior goes. But is there any way by which the zoom function can be called manually, lets say by attaching it to zoom it and zoom out buttons.