🌍 Public
Viewing a saved revision (read-only)
f000fc55122a4a68937809349c394d72
Interactive Color Legend
This interactive scatter plot visualizes the Iris dataset, mapping petal length against sepal width with points colored by species. Hovering over the color legend highlights points of the selected species while fading the opacity of others, using React state to manage the hovered value. The visualization is built with React and d3.v5, employing `scaleLinear` for axes, `scaleOrdinal` for colors, and an SVG-based color legend with `onMouseEnter` and `onMouseOut` handlers.
AI-generated descriptionA scatter plot of The Iris Dataset.