{"version":"1.0","type":"rich","title":"Bowl of Fruit- General Update Pattern","description":"This example demonstrates D3’s general update pattern for animating SVG circles that represent a bowl of fruit. Fruits are initially apples, then are removed, replaced with lemons, or deleted at timed intervals, with enter, update, and exit selections handled via `data()`, `merge()`, and `transition()`. The code uses `scaleOrdinal` for color and radius, computes x-position from index, and animates radius from 0 on enter and to 0 on exit over one-second transitions, with updates triggered by `setTimeout`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/73b26d9567b74224bc50eb1c5adbe7cf?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}