🌍 Public
Viewing a saved revision (read-only)
39bb2f9c1fcc490a87708a257af22db4
Fork of Interactive Color Legend
This example visualizes the classic Iris dataset, plotting petal length against sepal width for individual flowers, colored by species. Hovering over a species in the interactive color legend highlights only the corresponding points, fading the rest. Built with D3 v5 scales and React components, the scatter plot uses the `scaleLinear` and `scaleOrdinal` APIs, and renders SVG circles via custom `Marks` and `ColorLegend` components. Data is loaded as CSV using `d3.csv`.
AI-generated descriptionA scatter plot of The Iris Dataset.