{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"Five fruit shapes appear in a row as red apples, then sequentially disappear and change color as the dataset updates. This example demonstrates D3’s general update pattern using `selection.enter`, `selection.merge`, and `selection.exit` with `d3.scaleOrdinal` for color and size mapping. SVG `<g>` groups, circles, and text labels animate via `transition().duration(1000)` on attributes like `r`, `fill`, and `text`. The code uses `d3.range` to generate initial data and `setTimeout` to trigger re-renders, showing how enter, update, and exit selections behave dynamically.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/fde83ea9c65c43099313759e381ba425?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}