Bowl of fruit - General Update Pattern
✓ Published0🌍 Public
A bowl of fruit demonstrates the D3 general update pattern, showing apples and lemons rendered as colored circles that are added, removed, and changed over time. The visualization uses d3.select, data joins, and enter/merge/exit selections in the fruitBowl function, with d3.scaleOrdinal mapping fruit types to colors and radii. The SVG output updates through three timed transitions, first removing an apple, then changing an apple to a lemon, and finally filtering out another apple.
AI-generated descriptionMIT Licensed