The d3 visualization library has a great mouse wheel and touch enabled zoom, however there doesn't seem to be a way to constrain it. How could one patch the d3 zoom behavior to add min and max values?
Here is my implementation of extents for d3.behavior.zoom.
We can probably make it more flexible, but hopefully that'll get things started.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With