Skip to main content
100%

Bowl of fruit - General Update Pattern

✓ Published0🌍 Public
MMelina
Last edited Jun 15, 2020
Created on Jun 14, 2020

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 description
MIT Licensed

Similar vizzes