{"version":"1.0","type":"rich","title":"Bowl of fruit click to select","description":"A bowl of fruit demonstrates interactive selection and data-driven updates with D3.js. Five apples render as circles in an SVG, and clicking any fruit selects it with a black stroke. The code uses `scaleOrdinal` for color and radius mappings, while `selection.enter`, `merge`, and `exit` manage dynamic updates as fruits are removed or change type. Transitions animate position and size changes over one second. A click handler triggers re-rendering to highlight the selected fruit.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a45e4524874348d9beda38538c0d6ac8?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}