Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Circles with D3

Public visualization

Viewing a saved revision (read-only)

a4198718c5eb4248ac748c25ae811c3b

Fork of Fork of Circles with D3

0 stars0🌍 Public
CCurran Kelleher
Last edited Oct 6, 2025
Created on Oct 6, 2025

This visualization presents a set of colored circles overlaid on vertical bars, with clickable circles that highlight their selection with a black stroke. Data consists of 14 items with x, y, radius, and fill color properties. The code uses React hooks to manage the selected circle's ID and D3 v7's `select` and `join` methods to bind data and render SVG elements. Clicking a circle triggers `setSelectedId`, causing a re-render that updates the stroke attribute on the selected circle.

AI-generated description