🌍 Public
Viewing a saved revision (read-only)
a0d20cc7cf8343b9ade4a6a86b1619b6
Interactive Color Legend
This interactive scatter plot visualizes the Iris dataset, mapping petal length and sepal width for three iris species. Hovering over legend items highlights the corresponding species while fading others, enabling quick comparisons. Built with React and D3 v5, the visualization uses `scaleLinear` for axes, `scaleOrdinal` for color mapping, and SVG circles for marks. The legend responds to `onMouseEnter` and `onMouseOut` events, revealing all data points at full opacity when no species is selected.
AI-generated descriptionA scatter plot of The Iris Dataset.