🌍 Public
Viewing a saved revision (read-only)
6aa583767de84b23ade57a5dab2212fe
Fork of Bowl of Fruit (Hover to Select)
This example demonstrates a dynamic fruit bowl visualization where apples and lemons appear, transform, and disappear over time. A black stroke highlights the currently hovered fruit, with the selection state cleared on mouseout. The code uses d3 v6 APIs including `scaleOrdinal` for color and radius mapping, `selection.enter`/`exit` with `transition.attr` for smooth size changes, and `selection.on` for mouse events. The SVG circles are bound to data objects with unique IDs via `data(fruits, d => d.id)`.
AI-generated description