{"version":"1.0","type":"rich","title":"Interactive Color Legend","description":"This example visualizes the classic Iris dataset as an interactive scatter plot, with petal length and sepal width mapped to the x and y axes. A color legend on the right encodes the species of each flower, and hovering over a legend entry highlights the corresponding points while fading the rest. Built with React and D3.js, the code uses `d3.scaleLinear` and `d3.scaleOrdinal` for axes and color mapping, and renders the chart as SVG with event handlers on the legend circles to trigger the hover effect.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/094429243bec48caa1eb0fd4df34b83e?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}