🌍 Public
Viewing a saved revision (read-only)
7c818e35461140448fb229cb8d61205e
Bowl of Fruit-Hover to Select
D3 v5 renders five apples as SVG circles that smoothly grow into place, then shrink and vanish when items are removed. Hovering highlights a fruit with a black stroke while updating the `selectedFruit` state. The code uses the general update pattern with `data()` joins, `merge()`, `exit()`, and `transition()` for animation, alongside ordinal scales for color and radius mapping.
AI-generated description