Bowl of Fruit, Click to Select
✓ Published1🌍 Public
Five apples sit in a row on an SVG canvas, each rendered as a circle with a sequential transition. Clicking an apple selects it, applying a black stroke, and a timeout script removes or mutates fruits to demonstrate the enter, update, and exit pattern. The code uses d3 v5 with a scaleOrdinal for color and radius, and each circle’s click handler triggers a re-render via `fruitBowl`. A 1-second transition animates circle radius and position changes.
AI-generated descriptionStuff and Things
MIT Licensed