{"version":"1.0","type":"rich","title":"Fork of Bowl of Fruit - General Update Pattern","description":"This example demonstrates the general update pattern for animated data changes in D3.js. It shows a row of fruits—apples and lemons—that are added, removed, or replaced over time, with the visualization updating accordingly. A set of timed transitions modifies the underlying array, and the code uses `selection.selectAll('g').data()` to manage enter, update, and exit states for each fruit group. The visual properties, such as circle radius and fill color, are mapped via `scaleOrdinal` from the D3 API, and the updates are triggered by `setTimeout` calls in a simple script. The rendering is done as SVG elements within an HTML page.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/46e019487bc6442d8e0662ad24bd4705?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}