🌍 Public
Viewing a saved revision (read-only)
bf4d40e098cf4ca3a56a4ae47204fd49
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.