All examples By author By category About

stefan505

Zoom by Rectangle

An example of setting x- and y-scale domains (zooming) by selecting a rectangular region using the mouse. The original question required that it work in tandem with d3.behavior.zoom for panning, hence the checkbox for switching on the “zoom by rectangle” mode.

forked from jasondavies's block: Zoom by Rectangle