block by mbostock 5e81cc677d186b6845cb00676758a339

Constrained Zoom

Full Screen

This example demonstrates how to constrain d3-zoom such that a rectangular area of interest is not allowed to go outside the viewport.

index.html