{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"Five apples rendered as SVG circles in a bowl demonstrate D3’s general update pattern. The code uses `d3.scaleOrdinal` for color and radius, binding fruit data to circles via `selectAll` and `data`. A `setTimeout` removes the last apple, while another changes the third apple to a lemon, triggering enter, update, and exit selections with `circles.enter()`, `circles.attr`, and `circles.exit().remove()`. The visualization shows how D3 handles dynamic data changes smoothly.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3fc00f71e9f04564ac2392a3c954d634?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}