Skip to main content
100%

Bowl of Fruit Hover to Select

✓ Published0🌍 Public
JJake
Last edited Jul 5, 2020
Created on Jul 5, 2020

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 description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes