Skip to main content
100%

SVG Geometric Zooming

✓ Published0🌍 Public
Mmbostock
Last edited Aug 30, 2017
Created on Sep 8, 2012

A scatterplot of 2,000 normally distributed points demonstrates geometric zooming in SVG. The visualization shows how the entire coordinate system scales uniformly, with all circle radii increasing proportionally as the view magnifies. Built with D3 v4, the example uses `d3.zoom` attached to a background rectangle, applying the current transform directly to a group element containing all points. The code generates random positions via `d3.randomNormal` and renders each point as a circle with a `translate` transform, allowing the zoom handler to scale and pan the whole scene without recalculating individual positions.

AI-generated description

A series of related examples:

gpl-3.0 Licensed

Similar vizzes