🌍 Public
Viewing a saved revision (read-only)
a8ea4359cbab419599aff07d4cef35d2
Scatter Plot with Interactive Color Legend
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.