Skip to main content
100%

Interactive Color Legend

✓ Published1🌍 Public
Rrstrauss127
Last edited May 17, 2022
Created on May 16, 2022

This interactive scatter plot uses the classic Iris dataset to explore relationships between sepal length and width, with points colored by species. A custom color legend on the right allows users to hover over species labels, which fades non-matching points to 20% opacity while keeping the selected species fully visible. Built with React and D3 v5, the visualization uses `scaleOrdinal` for species coloring, `scaleLinear` for axes, and SVG rendering. The color legend reacts to mouse events via React's `onMouseEnter` and `onMouseOut` handlers.

AI-generated description
MIT Licensed

Similar vizzes