Bowl of Fruit - Hover to Select
✓ Published0🌍 Public
Five fruit circles in a bowl render as apples and lemons across an SVG canvas. Hovering over a fruit selects it, drawing a black stroke around it, while moving the mouse away deselects it. The example uses d3’s data join with enter, update, and exit selections, and d3-transition’s `transition().duration()` to animate circle radius and position changes over one second. `d3.scaleOrdinal` maps fruit types to colors and sizes.
AI-generated descriptionUsing mouseover and mouseout for interaction
MIT Licensed