Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bowl of Fruit - Update Pattern

Public visualization

Bowl of Fruit - Update Pattern

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

Comments

Sign in to join the discussion.

MIT Licensed