Skip to main content
100%

Fork of Interactive Color Legend

✓ Published0🌍 Public
AAnkit-Ian-53787
Last edited Oct 31, 2021
Created on Oct 31, 2021

This interactive scatter plot visualizes the Iris dataset, showing petal length against sepal width with points colored by species. Users can hover over the color legend to highlight a selected species while dimming all other data points. The visualization uses d3.scaleLinear for axes, d3.scaleOrdinal for categorical colors, and d3.csv for data loading. React manages state for hover interactions, while SVG elements render the axes, legend, and data marks. The code also includes reusable AxisBottom, AxisLeft, ColorLegend, and Marks components.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes