🌍 Public
Viewing a saved revision (read-only)
50a2ae37e3cb4c3b8b77fb597feed888
Scatter Plot with Color Legend
This interactive scatter plot visualizes the Iris dataset, displaying sepal and petal measurements for three flower species distinguished by color. Users can switch the x- and y-axes between four measurement attributes via dropdown menus. The example uses React with D3 v6 scales and axes, rendering SVG circles and a custom color legend. Data is loaded asynchronously using D3’s `csv` loader and mapped to linear scales with `.nice()` formatting.
AI-generated descriptionA scatter plot of Iris Data with color legend.