🌍 Public
Viewing a saved revision (read-only)
4dd60652e5c74d379e4ae5fb6a012859
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