Skip to main content
100%

Simple Interactive Color Legend

✓ Published0🌍 Public
LLisa Wagner
Last edited Aug 25, 2021
Created on Aug 25, 2021

This interactive scatter plot visualizes the Iris Dataset using React and SVG, with D3 scales for positioning and color encoding. The legend lists species names as colored circles, and hovering over a legend item triggers a fade effect that dims all non-matching data points while keeping the selected species fully opaque. The chart uses `scaleOrdinal` for categorical colors and `scaleLinear` for axes, with the hover state managed via React's `useState` hook.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes