{"version":"1.0","type":"rich","title":"Color Legend","description":"This interactive scatterplot lets users explore the Iris dataset by selecting which measurement to map to the x-axis (e.g., petal length, sepal width). Data points are rendered as circles using React and SVG, with their position derived from `d3.scaleLinear` for x and y values, and their color assigned via `d3.scaleOrdinal` based on species. A color legend, built from the same ordinal scale, displays each species’ color and name, while a dropdown menu updates the x-axis attribute using React state. The chart loads the data asynchronously using D3's `csv` function.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/001e6c84d57e406f951238b659361807?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}