{"version":"1.0","type":"rich","title":"Scatter Plot with Color Legend","description":"This example visualizes the classic Iris dataset using a scatter plot of petal length versus sepal width, with points colored by species according to a color legend. Selecting a legend item dims all other points and restores full opacity to the matching species. Built with React and D3 v5, it uses `scaleLinear`, `scaleOrdinal`, and `extent` to compute scales, while custom React components render axes, marks, and the interactive legend as SVG. The data loads as CSV via D3’s `csv` function.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/8d600af6081d45d3a1bf878fd9a14082?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}