{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"This example demonstrates the general update pattern for animated data visualizations with SVG. It shows a row of fruits—apples and lemons—that change over time as items are added, removed, or modified, with each fruit’s size and color derived from its type. The code uses D3 v5’s `scaleOrdinal` for color and radius mappings, and employs the `selection.merge()` and `selection.exit()` APIs to handle enter, update, and exit states dynamically. The React framework orchestrates timed updates to the fruit array, triggering re-renders that morph the visualization.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a6b74f6866934e34b139bc2c4145b054?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}