🌍 Public
Viewing a saved revision (read-only)
b9b34c9af7704102a790e509b5911f65
Fork of Scatter Plot with Color Legend
This scatter plot visualizes the Iris Dataset, mapping petal length and sepal width for individual flowers, with color encoding species. Built with React and D3 v5, it uses `scaleLinear` for axes and `scaleOrdinal` for the categorical color scale. A custom `ColorLegend` supports interactive hover, which dims non-matching points and re-renders the highlighted subset. Axes are generated via reusable `AxisBottom` and `AxisLeft` components, while SVG circles serve as marks.
AI-generated descriptionA scatter plot of The Iris Dataset with color legend.