Skip to main content
100%

Hello VizHub

✓ Published0🌍 Public
Hhvindshoej
Last edited Oct 19, 2019
Created on Oct 10, 2019
Forked from Hello VizHub

This example demonstrates interactive circles on an SVG canvas, where users can drag each circle to reposition it or click to trigger a temporary scale-and-color animation. The visualization highlights D3 v5’s drag behavior and transition system, using chained transitions to enlarge circles to black and then restore their original size and color. It generates 20 randomly positioned circles with a fixed radius, colored via the `d3.schemeCategory10` palette. The code relies on `d3.create`, `d3.range`, `d3.drag`, and `selectAll().join()` to manage dynamic elements and event handling.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes