Skip to main content
100%

Scatter Plot with Interactive Color Legend

✓ Published0🌍 Public
WWolfgang
Last edited Apr 4, 2021
Created on Apr 4, 2021

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 description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes