Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Interactive Color Legend

Public visualization

Fork of Interactive Color Legend

0 stars0🌍 Public
SSteven Pearce
Last edited Dec 16, 2021
Created on Dec 16, 2021

This interactive scatter plot visualizes the Iris dataset, showing petal length versus sepal width for three species of iris flowers. A static SVG renders circles for each data point, colored by species via a D3 ordinal scale. Hovering over a species label in the adjacent color legend fades out non-matching points and highlights the selected group. The implementation uses D3 scales (`scaleLinear`, `scaleOrdinal`) for axes and colors, React hooks for hover state, and renders everything as SVG elements.

AI-generated description

A scatter plot of The Iris Dataset.

Comments

Sign in to join the discussion.

MIT Licensed