{"version":"1.0","type":"rich","title":"Bowl of Fruit General Update Pattern","description":"This example demonstrates the general update pattern in D3 by animating a changing dataset of fruit circles. Apples and lemons are rendered as colored circles that enter, update, and exit with transitions, using `d3.scaleOrdinal` for color and radius mapping. The code uses D3 v6 selections with `.enter()`, `.merge()`, and `.exit()` to handle dynamic array changes, including removals and type updates over time. The implementation is plain JavaScript with D3 transitions, updating an SVG within a React-compatible structure.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/07fe3c805c1244b798f821aa1ca810e1?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}