Skip to main content
100%

Bowl of Fruit - Update Pattern

✓ Published2🌍 Public
EEllednera
Last edited Nov 4, 2020
Created on Nov 3, 2020
Forked from Face - D3.js

Five apples appear as red circles in an SVG bowl, then shrink and disappear as the dataset changes over time. A lemon replaces one apple, turning yellow and changing radius, while another apple is removed entirely. The example demonstrates the D3 update pattern using `selection.data`, `enter`, `merge`, and `exit` with `d3.scaleOrdinal` for color and size. Transitions animate position and radius over one second via `transition().duration`.

AI-generated description
MIT Licensed

Similar vizzes