🌍 Public
Viewing a saved revision (read-only)
a231310f02504e3faf6b99bba5ad3b20
Bowl of Fruit - General Update Pattern
Apples and lemons sit in a brown bowl, demonstrating the general update pattern as fruit is added, removed, or changed over time. The React component uses a D3 selection with enter, update, and exit phases to manage SVG circles and text labels, scaling their radius and color via `scaleOrdinal`. Timed intervals trigger dataset mutations, such as eating an apple or replacing one with a lemon, while the bowl’s rectangle remains static. This example visualizes data binding and state transitions in a lightweight, interactive scene.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.