Skip to main content
100%

Zooming and Panning

✓ Published0🌍 Public
IIgathi
Last edited Jun 28, 2018
Created on Jun 28, 2018

Four multicolored circles arranged in a square pattern sit at the center of an SVG canvas. The visualization demonstrates zooming and panning through d3.behavior.zoom, which captures mouse wheel drags and touch gestures. Users can scale the view between 1× and 10× magnification and pan freely by dragging. The circles’ positions are defined in data arrays and rendered as SVG circle elements with a translate transform applied to the parent group during zoom events.

AI-generated description

Testing zoom and panning in d3.js with both mouse and touch interactions.

sources:

forked from <a href='http://bl.ocks.org/eesur/'>eesur</a>'s block: <a href='http://bl.ocks.org/eesur/c8ddc916e07af6e0481a'>d3 | zoom and panning</a>

mit Licensed

Similar vizzes