{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"This example demonstrates the general update pattern in D3, showing how a data set of apples and lemons is rendered as SVG circles and animated when items are added, removed, or changed. It uses `d3.scaleOrdinal` to map fruit types to colors and radii, and `d3.select` with chained `enter`, `merge`, and `exit` methods to transition circles smoothly. Animations are driven by `transition().duration(1000)` and triggered via `setTimeout`, while the data join keys on each fruit’s random `id`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/199b12f9abba4e20b04f018e71aaad4a?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}