Skip to main content
100%

D3 Zoom

✓ Published0🌍 Public
WWRCIECH
Last edited Jan 12, 2023
Created on Jan 9, 2023
Forked from D3 Forces

A D3 zoom interface demonstrates interactive panning and scaling within an SVG coordinate system. A single green circle, positioned through linear scales, responds to mouse wheel and drag gestures that trigger the `d3.zoom` behavior. The example simultaneously updates axis tick marks via `transform.rescaleX` and `rescaleY`, while displaying the current translation values and zoom multiplier in separate HTML divs. The visualization renders with SVG elements, using `d3.axisBottom`, `d3.axisLeft`, and `d3.scaleLinear` to maintain spatial mapping during the zoom transform.

AI-generated description
MIT Licensed

Similar vizzes