Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bowl of Fruit - General Update Pattern

Public visualization

Bowl of Fruit - General Update Pattern

0 stars0🌍 Public
LLinn
Last edited Oct 21, 2019
Created on Oct 21, 2019

This example demonstrates the general update pattern in D3, showing a bowl of fruit where apples shrink and disappear, one transforms into a lemon, and a second apple is removed. Circles animate their radius over 1000 milliseconds using `transition().duration()`, with color and size scales defined via `scaleOrdinal()`. The visualization uses SVG, communicates state changes through enter, merge, and exit selections, and is driven by `setTimeout()` events in the JavaScript file.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed