Skip to main content
100%

Interactive Color Legend

✓ Published0🌍 Public
Iidwann-eng
Last edited Mar 12, 2020
Created on Mar 12, 2020

This interactive scatter plot visualizes the Iris dataset, mapping petal length and sepal width with a color-coded legend for species. Built with React and D3 v5, it uses `scaleLinear` for axes and `scaleOrdinal` for color mapping, rendering SVG circles. Hovering over a legend item filters the marks via `onMouseEnter` and `onMouseOut`, fading non-matching points to a specified opacity. The axes are generated with custom `AxisBottom` and `AxisLeft` components, and the data is loaded asynchronously using `csv` from `useData`.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes