Skip to main content
100%

Bowl of Fruit

✓ Published0🌍 Public
Zzakaria badri
Last edited May 16, 2020
Created on May 13, 2020
Forked from HTML Starter

This example animates a bowl of fruit as apples are eaten and one apple transforms into a lemon, with each fruit rendered as a colored circle and text label. Using React and D3 v5, it binds an array of fruit objects to SVG circles and texts, animating enter, update, and exit transitions with `transition().duration()`. The `scaleOrdinal` maps fruit types to colors and radii, while `setTimeout` schedules state changes that trigger re-renders through the `fruitBowl` function.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes