This examples demonstrates how to use D3's brush component to implement focus + context zooming. Click and drag in the small chart below to pan or zoom.
Modified from Mbostock's original to use SVG transform/scale instead of re-deriving the area chart. Seems to be much faster in larger datasets.