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
NNikkor
Last edited Sep 20, 2018
Created on Sep 20, 2018
Forked from Cars report

Five apples in a bowl shrink and vanish when eaten, and a lemon substitutes for one apple, demonstrating D3's general update pattern with special cases. The example uses D3 v5’s `selectAll`, `enter`, `merge`, `exit`, and `transition` APIs to animate circle radii and text font sizes. A custom counter controls whether elements reappear after a removal, highlighting an atypical state where data updates do not fully reset visual properties. The SVG renders ordinal color and radius scales for fruit types.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed