{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"A bowl of fruit demonstrates D3's general update pattern with special cases, showing how data joins handle enter, update, and exit selections for apples and lemons. D3 v5's selection methods—`merge`, `exit().remove()`, and nested selections—manage circle and text elements across four timed transitions: adding apples, removing one, replacing an apple with a lemon, and filtering a specific index. The code uses `scaleOrdinal` for color and radius mapping, rendering SVG shapes within a static bowl rectangle, with each state change triggered by `setTimeout`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/2b0da4f1c7eb4a62a3d8ea78d80a95fc?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}