{"version":"1.0","type":"rich","title":"Adding Color Legend, ScatterPlot (codeAlong)","description":"This visualization is an interactive scatter plot of the Iris dataset, mapping sepal and petal measurements to the x and y axes while encoding the iris species with a color legend. The graph uses an ordinal color scale to map the species categories to distinct colors, displayed in a dedicated legend. Built with React and D3 v6, it renders as an SVG and includes dropdown menus for selecting which attributes to display on each axis. The code utilizes D3’s `scaleLinear`, `scaleOrdinal`, `extent`, and `csv` functions to process data and scale values.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/08608dacdce548c49ab5fab0e68897bb?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}