🌍 Public
Viewing a saved revision (read-only)
97f27da43adb4ec497e5fad64820e9bd
Círculos Interaction state
Seven pastel circles on a light green background respond to clicks. Clicking a circle raises it to the top and adds a thick black outline, while clicking the background removes the highlight. The example uses d3-selection’s `join` for data binding and `on` event listeners to update a `selectedId` in the shared state. The data is a static array of circle positions and radii, rendered as SVG elements.
AI-generated descriptionClick on a circle to see it highlight!
For examples of this in various frameworks, see d3-rosetta