Skip to main content
Explore
Solutions
Bespoke Studio
Pricing
Quick Start
Demo
Log in
Send feedback
✕
Tell us what works and what could be better. We read every submission.
Send feedback
✕
Tell us what works and what could be better. We read every submission.
Home
•
Fork Viz
Fork Viz
Create your own copy of this visualization.
Forking from
Bowl of Fruit - General Update Pattern
Title
*
Description
Five circles are drawn as apples in a bowl, each at a fixed horizontal position. The visualization demonstrates the general update pattern: initially five apples appear, then the last is removed, the third apple changes into a lemon, and the second item is deleted. Using D3 v5’s `selectAll`, `data`, `enter`, `merge`, and `exit` methods within the custom `fruitBowl` function, the SVG circles transition smoothly. Ordinal color and radius scales map fruit types to specific colors and sizes, with data defined in `index.js`.
Visibility
Public
Private (only you), Pro
Unlisted (anyone with link)
Private work requires Pro.
Upgrade
Cancel
Fork Viz