🌍 Public
Viewing a saved revision (read-only)
b64cc2bbcf594c638be8704f4c6c6201
Bowl of Fruit - General Update Pattern Special Cases
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