Skip to main content
100%

Interactive Color Legend

✓ Published0🌍 Public
Vvkk2
Last edited Jul 11, 2020
Created on Jul 11, 2020

This interactive color legend demonstrates filtering in a scatter plot of the Iris dataset, mapping petal length against sepal width. The visualization uses React with D3 scales, including `scaleLinear` for encoding positions and `scaleOrdinal` for mapping species to colors. Hovering over a legend item highlights the corresponding species by fading non-matching points via opacity adjustments, while the filtered subset remains fully visible. Axis components, `AxisBottom` and `AxisLeft`, render ticks from the D3 scales, and SVG circles with `<title>` elements provide tooltips.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes