Zoom + Pan
✓ Published0🌍 Public
DDinoJay
Last edited Mar 11, 2016
Created on Mar 11, 2016
The example demonstrates zooming and panning over a dense scatterplot of 2,000 points, rendered as red squares that move in response to user interaction. It shows how a standard d3.behavior.zoom can be applied to HTML divs rather than SVG, using CSS transforms for positioning. The code generates random data with d3.random.normal, maps it through linear scales, and updates each square’s transform during the zoom event. The visualization uses d3.v3 with SVG-free HTML elements, highlighting the flexibility of D3’s zoom behavior for non-SVG layouts.
AI-generated descriptionBuilt with blockbuilder.org