Skip to main content
100%

Bowl of Fruit - General Update Pattern

✓ Published0🌍 Public
Kkwanwoo100
Last edited Jun 30, 2020
Created on Jun 30, 2020

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
MIT Licensed

Similar vizzes