Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bowl of Fruit - General Update Pattern Special Cases

Public visualization

Viewing a saved revision (read-only)

bdb9aeab2b57460ca7051a22a7196e79

Bowl of Fruit - General Update Pattern Special Cases

0 stars1🌍 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