{"version":"1.0","type":"rich","title":"General Update Pattern and DOM Element Select Event Handling","description":"An interactive SVG scene displays a row of apples and lemons inside a bowl. D3 v5 code uses the general update pattern to add, remove, and modify circle elements over timed intervals, and the `selection.attr` API applies dynamic stroke widths to highlight the currently selected fruit via an `on('click')` handler. The `scaleOrdinal` function maps fruit types to specific colors and radii.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/62a9f005678d469089996223ba6d601d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}