{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"This example demonstrates the general update pattern in D3, showing how graphical elements respond to changes in an array of fruit objects over time. A bowl of apples is gradually modified as fruits are removed, and one apple transitions into a lemon, with all shapes and colors updating accordingly. The code uses D3’s selection merging (`selection.enter().append()`, `.merge()`, and `.exit().remove()`) to handle the incremental changes, while `scaleOrdinal` maps fruit types to colors and radii. The visualization is rendered as SVG within a React framework, using D3 v5.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a0e14c72864c4346a05566ed66fdde59?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}