Skip to main content
100%

Interactive Color Legend

✓ Published0🌍 Public
CChen Ding
Last edited Oct 30, 2019
Created on Oct 29, 2019

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 description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes