Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bowl of Fruit - General Update Pattern Special Cases

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed