🌍 Public
Viewing a saved revision (read-only)
ad1e5af509ad44d88f97496a484251aa
Color legend
This scatter plot of the Iris dataset maps sepal length and width, with points colored by species. A color legend on the right side filters the visualization, dimming non-matching species and highlighting the selected one on hover. The example uses React with d3.scaleOrdinal for color mapping, d3.scaleLinear for axes, and SVG circles rendered via ReactDOM. Data is loaded from a CSV using d3.csv.
AI-generated description