{"version":"1.0","type":"rich","title":"Scatter Plot with Color Legend","description":"A React-driven scatter plot visualizes the iris dataset, displaying four numeric attributes as selectable X and Y axes via dropdown menus. Each circle represents a flower, colored by species through a legend using `scaleOrdinal`. The SVG rendering uses `d3.scaleLinear` and `d3.extent` for axes, with React state managing the attribute selection. The code imports `csv` from D3 v5, uses React hooks like `useState` and `useEffect`, and custom components like `AxisBottom`, `AxisLeft`, `Marks`, and `ColorLegend` structure the visualization. A tooltip reveals exact values on hover.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/0ce35e34117643eead621d38d044da16?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}