Skip to main content
100%

Scatter Plot with Interactive Color Legend

✓ Published0🌍 Public
FFulvio Vigilante
Last edited Jul 16, 2021
Created on Jul 16, 2021

A scatter plot of the Iris Dataset shows petal length against sepal width, with each point colored by species. The visualization uses React with D3 scales to map data to SVG coordinates. An interactive color legend allows hovering over species labels to highlight only the corresponding points, dimming all others. The code implements this interaction through React state management, re-rendering marks with adjusted opacity when the hovered species changes.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes