Scatter Plot with Interactive Color Legend
✓ Published0🌍 Public
This interactive scatter plot visualizes the Iris dataset, mapping petal length against sepal width for three flower species. Hovering over the color legend highlights points of that species while dimming others, using React state to manage the hovered value and opacity transitions. Built with D3 v6 scales for positioning and color encoding, it renders as SVG through React components, with axis ticks generated by xScale.ticks() and yScale.ticks(), and tooltips provided by native SVG title elements.
AI-generated descriptionA scatter plot of The Iris Dataset.
MIT Licensed