I'm interested in creating a single-axis zoom for d3's zoom behavior. Are there any straightforward examples that demonstrate how to achieve this? I came across Mike Bostock's example, but I found it a bit complex to grasp.
Here is the code snippet that I have been working on:
var zoom = d3.behavior.zoom()
svg.call(zoom);
zoom.y(yRange);
Just to clarify, I am specifically aiming to enable the y-axis zoom functionality during the zoom event.
I would greatly appreciate any guidance or resources that could assist me in this task. Thank you in advance.