{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern for dynamic data visualizations, tracking five fruits in a bowl as they change over time through scripted modifications. It shows how items are added, removed, and have their attributes updated, with a visual distinction between apples and lemons using different colors and radii. The code uses D3 v5's selection merging and transitions to animate position, size, and text placement, while clicking a fruit highlights it with a black stroke. The data is a simple array of fruit objects, with each state change triggered by a timeout and rendered via the `fruitBowl` function.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/39100ef9256c42cf9ad3672b1b3e0a74?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}