{"version":"1.0","type":"rich","title":"Fork of Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern for handling dynamic data changes in D3.js v5, showing how SVG elements are added, removed, and modified in response to a sequence of timed events on a bowl of fruit. The visualization starts with five apples, then removes one, changes one apple into a lemon, and removes another apple, all while using `selection.selectAll`, `.enter()`, `.merge()`, and `.exit()` to manage the lifecycle of `g` groups containing circles and text labels. The code applies `scaleOrdinal` for both color and radius scales, mapping fruit types to specific visual properties, and uses `setTimeout` to trigger each update transaction.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/ae937433579a427587678491d88340fb?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}