Scatter Plot with Interactive Color Legend
✓ Published0🌍 Public
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 descriptionA scatter plot of The Iris Dataset.
MIT Licensed