Bowl of Fruit Hover to Select
✓ Published0🌍 Public
This example demonstrates a dynamic fruit bowl visualization where apples and lemons are represented as circles, and hovering over a fruit highlights it with a black stroke. The animation shows fruits being eaten, transformed from apple to lemon, and removed from the bowl over time. Using React and D3 v5, the `fruitBowl` function leverages `scaleOrdinal` for color and radius mapping, along with D3's selection and transition APIs to smoothly animate entering, updating, and exiting circle elements with a one-second duration.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed