{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"This example demonstrates the general update pattern in D3 by showing a row of fruit circles that change over time—apples are removed, one apple transforms into a lemon, and another apple disappears. The code uses `d3.scaleOrdinal` to map fruit types to colors and radii, and `selectAll` with `.enter()`, `.merge()`, and `.exit()` to handle data joins. SVG circles are appended and updated based on a `fruits` array, with timers (`setTimeout`) triggering each state change.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a89dd102fc4e4b1fb17c404a73e9388c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}