{"version":"1.0","type":"rich","title":"Fork of Bowl of Fruit - Add labels","description":"This example demonstrates the dynamic lifecycle of a fruit bowl scene, where a sequence of timed events alters an array of fruit objects—adding apples, removing individual items, and swapping an apple for a lemon—while a D3 visualization updates in response. The scene renders each fruit as a colored circle with a text label, using `d3.scaleOrdinal` for color and radius mappings. The `fruitBowl` function reacts to data changes by merging new and existing SVG groups, updating their positions, circle attributes, and labels through D3’s selection and merge methods. The code utilizes D3 v5.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/5e07d5a3d20442af949797b1071c2490?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}