Círculos Interaction state
✓ Published0🌍 Public
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
MIT Licensed