Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bowl of fruit - General Update Pattern

Public visualization

Viewing a saved revision (read-only)

7b103d8bd2ae4cf5b53eeb187de54fff

Bowl of fruit - General Update Pattern

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