🌍 Public
Viewing a saved revision (read-only)
17e668fbf72243d283da9e558c6c3baa
Bowl of Fruit - General Update Pattern
Apples and lemons appear as colored circles in an SVG bowl, demonstrating D3’s general update pattern with enter, merge, and exit selections. The code uses `scaleOrdinal` for color and radius, and updates the scene over time by eating or replacing fruit via `setTimeout`. Data is random IDs, with x positions computed from each fruit’s index.
AI-generated description