🌍 Public
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.
MIT Licensed








Comments
Sign in to join the discussion.