Skip to main content
100%

Fork of Interactive Color Legend

✓ Published0🌍 Public
Cchristopher-coyne
Last edited Apr 21, 2022
Created on Apr 21, 2022

A scatter plot of the Iris dataset displays petal length against sepal width, with points colored by species. The visualization uses React state to track a hovered species in the color legend, dimming all other marks via opacity changes. The `ColorLegend` component captures mouse events, while `Marks` renders SVG circles. Axes use `scaleLinear` and SVG `<line>` and `<text>` elements from d3.v5, with data loaded by the `useData` hook using `d3.csv`.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes