{"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 as apples are eaten and replaced with lemons over time. The code uses `selection.data()`, `enter()`, `merge()`, and `exit()` to handle circles and text labels, with `d3.scaleOrdinal` mapping fruit types to colors and radii. Rendering occurs as SVG within a fixed-width viewport, driven by a simple `render()` function called after each timed mutation to the fruits array. The visualization relies on D3 v5 and vanilla JavaScript to coordinate data joins and smooth transitions.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/0186f32cba514c779cf949f7ed5921cf?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}