Skip to main content
100%

Fork of Zoomable Circles with D3-Zoom

✓ Published0🌍 Public
YYanghong Huang
Last edited Sep 23, 2025
Created on Sep 23, 2025

This example presents a static scatterplot of six colored circles on a light green background, with zoom and pan interactions enabled. The circles are positioned at fixed coordinates and rendered as SVG elements using d3.select and attribute setters. The zoom behavior is implemented with d3.zoom, which captures the current transform in state and applies it to a group element containing all circles. The state-driven transform updates the group’s transform attribute, allowing the entire collection of circles to be moved and scaled smoothly.

AI-generated description
MIT Licensed

Similar vizzes