🌍 Public
Viewing a saved revision (read-only)
2e9b7117eacf4601bfc3ab45afc784bf
Bowl of Fruit - Hover to select
Five circles represent fruit in a bowl, with apples and lemons colored by a d3.scaleOrdinal. Hovering over a circle selects it with a black stroke, and the selection is managed through a state variable. The fruitBowl function uses data joins and transitions to animate the addition, removal, and type changes of fruit over time. The code employs d3-selection, d3-transition, and d3-scaleOrdinal with SVG rendering.
AI-generated description