Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Zoomable Circles with D3-Zoom

Public visualization

Viewing a saved revision (read-only)

5b716652a0614130907376ab1ba8dfaa

Fork of Zoomable Circles with D3-Zoom

0 stars0🌍 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