Skip to main content
100%

Fork of Zoomable Circles with D3-Zoom

✓ Published0🌍 Public
Rrobinjohn.inc@gmail.com
Last edited Aug 21, 2024
Created on Aug 21, 2024

This example shows a set of six colored circles that can be panned and zoomed using the d3-zoom module. It uses the `select` and `zoom` functions from d3 to attach an interactive zoom behavior to an SVG container. The current transformation state, updated via `setState` on each zoom event, is applied to the group element holding the circles, which have fixed coordinates and radii. The visualization demonstrates how to integrate d3-zoom for panning and zooming within a VizHub environment.

AI-generated description

A demonstration of how to add panning and zooming using d3-zoom.

Challenge

  • Use this technique to add zooming to a visualization you created, such as a map
MIT Licensed

Similar vizzes