{"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 bowl of fruit represented as circles. It shows how data joins handle entering, updating, and exiting elements: apples appear, one is removed, another changes to a lemon, and a third disappears. The code uses `selection.data`, `.enter()`, `.merge()`, `.exit()`, and `transition.attr`. It relies on `d3.scaleOrdinal` for color and radius scales, and renders with SVG circles in a fixed 960×500 viewport. Animated transitions adjust circle positions and radii over one-second durations.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/019465802ae94f6dac054b9f3eee22de?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}