Skip to main content
100%

Fork of Scatter Plot with Color Legend

✓ Published0🌍 Public
KKwame Porter Robinson
Last edited Dec 16, 2022
Created on Dec 16, 2022

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 description

A scatter plot of The Iris Dataset with color legend.

MIT Licensed

Similar vizzes