Skip to main content
100%

Scatter Plot with Interactive Color Legend

✓ Published0🌍 Public
Aazharahmad0
Last edited Mar 28, 2021
Created on Mar 28, 2021

This scatter plot visualizes the classic Iris dataset, showing petal length against sepal width with points colored by species. A color legend on the right highlights all three Iris species, and hovering over a legend entry fades non-matching points while emphasizing the selected species. The visualization uses React and D3 v5, with D3’s `scaleLinear` for axes, `scaleOrdinal` for categorical coloring, and SVG rendering. It demonstrates interactive filtering through React state management and mouse event handlers.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes