🌍 Public
Viewing a saved revision (read-only)
1ffe9d01f9014017b98b5600323a6aac
Bowl of Fruit - Update Pattern
Five dark red apples appear in a row inside an SVG canvas. After one second, D3’s enter/exit update pattern removes the last apple, shrinking the row to four circles. The code uses `selection.data()` to bind a fruit array, then explicitly appends circles on enter and removes them on exit, with the array modified via `pop()` and re-rendered.
AI-generated description