Skip to main content
100%

Interactive Color Legend

✓ Published1🌍 Public
RRussell Watson
Last edited Jan 6, 2020
Created on Jan 6, 2020

A scatter plot of the Iris dataset maps petal length and sepal width, with points colored by species. The interactive color legend uses React state to track a hovered species, which fades all non-matching marks via `opacity` and re-renders the filtered subset. Built with React, D3 v5 scales (`scaleLinear`, `scaleOrdinal`), and SVG circles, it updates through `MouseEnter` and `MouseOut` events on legend items.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes