{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern .js","description":"Five apples render as circles in an SVG bowl, then transition through a sequence of state changes: an apple is removed, another apple transforms into a lemon, and a third apple disappears. The example demonstrates D3’s general update pattern using `selection.data()`, `enter`, `merge`, and `exit` selections, with `transition().duration()` animating circle radii and positions. Ordinal scales map fruit type to fill color and radius, while each fruit’s unique `id` keys the data join. Random IDs from `Math.random()` generate the dataset.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/bce6464c7e11424f8df839b8a39d8338?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}