Skip to main content
100%

Interactive Color Legend

✓ Published0🌍 Public
Nnaisargidave
Last edited Oct 13, 2020
Created on Oct 13, 2020

A scatter plot of the Iris dataset maps petal length against sepal width, with each point colored by species. Hovering over the color legend dims non-matching points, creating an interactive filter. Built with React and D3 v5, the visualization uses `scaleLinear` for axes, `scaleOrdinal` for colors, and React state to manage the hovered value. SVG circles render the data, while the legend triggers `onMouseEnter` and `onMouseOut` events to update opacity.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes