Bowl of Fruit - Hover to Select
✓ Published0🌍 Public
This example presents a bowl of fruit as five circles, initially all apples, arranged in a row. Hovering over a fruit selects it, highlighted with a grey outline. The visualization uses D3 v5 with a data join to animate changes: fruits are removed after one and three seconds, and one apple transforms into a lemon after two seconds. The code leverages D3's `scaleOrdinal` for color and radius, React-like props for state, and SVG transitions for smooth animations.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed