{"version":"1.0","type":"rich","title":"CV: Interactive Color Legend","description":"This example presents an interactive color legend using D3 and React. Five colored circles and their corresponding labels display a categorical color scale, and hovering over a circle highlights it while dimming the others through animated opacity transitions. The visualization uses D3 v7’s `scaleOrdinal` to map domain values A through E to distinct colors, while React state tracks the hovered circle. The `viz` function renders the legend, with `renderCircles` and `renderText` managing SVG elements via data joins and seamless 300-millisecond transitions.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/857a4e120aeb4a379815050c0558458f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}