{"version":"1.0","type":"rich","title":"Bowl of Fruit - Click to Select II","description":"Five fruit circles render as a bowl of apples and lemons, with each fruit colored and sized by `d3.scaleOrdinal` and positioned via a custom `xPos` function. Clicking a fruit highlights its stroke and calls `onClick` to update the selection state. The example uses D3 v6’s data join with `enter`, `merge`, and `exit` selections, animating radius and position through `.transition().duration(1000)`, while `setTimeout` dynamically removes fruits and swaps an apple for a lemon over three seconds. SVG rendering and event listeners are used throughout.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/6f753a8a1a6a4486aebc67976c345943?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}