Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bowl of Fruit, General Update Pattern

Public visualization

Viewing a saved revision (read-only)

59a9ead8d3994d1290adda5778a7937f

Bowl of Fruit, General Update Pattern

0 stars2🌍 Public
Ccledevoute
Last edited Jun 24, 2020
Created on Jun 17, 2020

Five red apples and one yellow lemon move and resize within an SVG bowl using D3’s general update pattern. The `fruitBowl` function binds fruit data to circles, animating enter, update, and exit states via `transition().duration(1000)` and ordinal scales for color and radius. Data changes—eating apples and replacing one with a lemon—are triggered by `setTimeout`, demonstrating smooth transitions between states.

AI-generated description

Stuff and Things