Fork of Bowl of Fruit - Hover to Select
✓ Published0🌍 Public
This example demonstrates an interactive fruit bowl visualization where users hover over apples and lemons to select them, highlighting the chosen fruit with a thicker stroke. The fruit transitions in and out of the bowl with animated scaling. Built with React and D3 v6, it uses `scaleOrdinal` for color and radius mapping, and SVG `transition().duration()` for smooth updates. The code manages dynamic data changes—removing fruits and swapping types—via D3’s data join pattern.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed