{"version":"1.0","type":"rich","title":"Bowl O' Fruit - General Update Pattern - with Nesting","description":"A dynamic fruit bowl demonstrates D3's general update pattern with nesting, using `d3.select` to bind an array of fruit objects to SVG groups and managing enter, update, and exit selections via `selection.enter()`, `merge()`, and `exit().remove()`. Circles and text elements inside each group update attributes like fill color and radius using `d3.scaleOrdinal`, with apples and lemons mapped to red and yellow. The animation, driven by `setTimeout`, removes apples, replaces one with a lemon, and filters another, showing how data joins and nested selections handle transitions in D3 v5.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/f4a547db1a0b40dc9f3b2eb260eda6dd?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}