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?
The d3 visualization library has a great mouse wheel and touch enabled zoom, however
Share
Here is my implementation of extents for d3.behavior.zoom.
We can probably make it more flexible, but hopefully that’ll get things started.