Skip to main content
100%

Bowl of Fruit - General Update Pattern Special Cases

✓ Published1🌍 Public
Vvaporpin
Last edited Oct 21, 2020
Created on Oct 21, 2020

Five apples appear as SVG groups in a bowl, where each apple holds two stacked slices. After one second, the last apple disappears; another second later, the third apple becomes a lemon; then the second apple is removed, demonstrating special cases of D3’s general update pattern. The code uses `selection.join`-style merge and exit logic with `d3.scaleOrdinal` for color and radius, plus nested `rect` generation via `d3.range`.

AI-generated description
MIT Licensed

Similar vizzes