Fork of Interactive Color Legend
✓ Published0🌍 Public
This interactive scatter plot visualizes the Iris Dataset, mapping petal length against sepal width while color-coding data points by species. Hovering over a species name in the color legend highlights only that species' points and fades the rest, using React state and event handlers. Built with React and d3.scaleOrdinal, d3.scaleLinear, and d3.extent, the SVG rendering includes custom axes and a color legend component. The code loads CSV data via d3.csv and displays tooltips through SVG `<title>` elements.
AI-generated descriptionA scatter plot of The Iris Dataset.
MIT Licensed