Skip to main content
100%

Interactive Color Legend

✓ Published1🌍 Public
Yyyaaa1
Last edited Oct 10, 2019
Created on Oct 10, 2019

A scatter plot of the Iris dataset displays petal length against sepal width, with points colored by species. An interactive color legend on the right highlights a selected species by fading all other circles to 20% opacity. React manages hover state via `useState`, while D3's `scaleOrdinal` maps species to colors and `d3.csv` loads the data. The SVG visualization uses custom React components for axes, marks, and the legend, rendering with `circle` elements and D3 scales.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes