🌍 Public
Viewing a saved revision (read-only)
ce0a204b888f45b2b1a1132b7c51c494
Fruit Bowl - Click To Select
Five pieces of fruit sit in a simple bowl, rendered as SVG circles with labels. Clicking a fruit selects it, giving it a black outline. Through scheduled re-renders, fruit types change, fruits are removed from the end, and a new lemon is prepended, with exit animations shrinking removed circles. The code uses d3-selection’s data join, d3-transition for animated radius changes, and d3-scaleOrdinal for color and size mapping.
AI-generated description