Skip to main content
Public

Share visualization

Loading preview…

Fork of Bowl of Fruit - General Update Pattern

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportHTML, source ZIP

Viewing a saved revision (read-only)

qf6_L8F2Yd6tM_WEgBMKS

Fork of Bowl of Fruit - General Update Pattern

0 stars0Public
Mmroufail72
Last edited Nov 13, 2026
Created on Nov 13, 2026

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`.

MIT Licensed