Skip to main content
100%

Bowl of Fruit - General Update Pattern

✓ Published1🌍 Public
BbeauMarko
Last edited Jan 18, 2021
Created on Jan 18, 2021
Forked from Let's Make a Face

Five circles represent apples in an SVG bowl, and a sequence of animated updates demonstrates D3's general update pattern. The visualization starts with five apples, then removes one, changes another into a lemon, and finally filters out a third fruit, using enter, merge, and exit selections. D3 v6 scales map fruit types to colors and radii, while transitions animate radius and position changes over one second. The `fruitBowl` module handles the data join with `selection.data`, `enter.append`, and `exit.remove` APIs.

AI-generated description
MIT Licensed

Similar vizzes