{"version":"1.0","type":"rich","title":"click event pattern","description":"This example demonstrates a click event pattern for interactive data visualization. A set of colored circles representing fruits (apples, lemons, peaches) can be clicked to select them, triggering a visual highlight with a black stroke. The scene is animated using D3 transitions, with circles entering, exiting, and resizing over time. The code uses D3 v5 modules such as `scaleOrdinal` for color and radius mapping, `select`, `range`, and `transition().duration()` to orchestrate the SVG rendering and smooth animations.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/6676fbe989a144da9d79aae3fcf21f65?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}