{"version":"1.0","type":"rich","title":"Bowl of Fruit: General Update Pattern","description":"This example demonstrates the general update pattern for D3 selections, showing how a static bowl of five apples transitions as fruits are removed and one apple changes into a lemon. It uses D3 v5’s selection methods, including `enter()`, `merge()`, and `exit()`, to append, update, and delete SVG circle elements based on the changing `fruits` array. The fruit’s color and radius are mapped through `scaleOrdinal` with domains for apple and lemon, while the data is generated and mutated over timed `setTimeout` intervals in the main script.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a95033bbf6cf48e7b4c5bd82f0e630ab?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}