Zoom + Pan
This example demonstrates D3’s zoom and pan behavior applied to a simple coordinate system with axes. The visualization shows a blank gray plotting area where users can zoom up to 32× and pan freely by dragging, with the x-axis updating dynamically during the interaction. Built with D3 v3, it uses `d3.behavior.zoom` bound to linear `d3.scale` objects and renders axes via `d3.svg.axis` in SVG. The grid lines are drawn as axis ticks extending across the full chart height and width, with the y-axis intentionally omitted from updates during zooming.
AI-generated descriptionAn example of d3.behavior.zoom applied using x- and y-scales. This example can be extended with programmatic control to animate between preset views.
forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/3892919'>Pan+Zoom</a>