block by jasondavies 3689931

Zoom by Rectangle

Full Screen

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.

index.html

LICENSE