Skip to main content
100%

SVG Semantic Zooming

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

SVG semantic zooming applies a zoom transform to the positions of 2,000 circles generated with d3.randomNormal, while keeping their radius constant. The example uses d3.zoom to listen for wheel and drag events, and each circle’s transform attribute is updated via a custom function that applies d3.event.transform to its datum coordinates. A transparent overlay rectangle captures pointer events, and the circles are rendered as SVG elements with a fixed radius of 2.5 pixels, demonstrating how semantic zoom scales positions without altering symbol size.

AI-generated description

A series of related examples:

gpl-3.0 Licensed

Similar vizzes