Skip to main content
100%

Interactive Color Legend

✓ Published0🌍 Public
GGiovanniD_
Last edited Dec 18, 2020
Created on Dec 18, 2020

This interactive scatter plot explores the Iris dataset, mapping petal length against sepal width and encoding species by color. A custom color legend built with React and D3 scales allows users to hover over a species name, which highlights corresponding data points and fades the rest, revealing patterns in species separation. The visualization uses D3’s `scaleOrdinal` for color assignment and `scaleLinear` for axes, with SVG circles rendered as marks. Hovering also triggers a tooltip via the native SVG `<title>` element, providing precise values for each point.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes