🌍 Public
Viewing a saved revision (read-only)
286dd1ea825648a8be3d42161256cb38
Interractive Color Legend
This interactive scatterplot displays the Iris flower dataset, plotting petal length against sepal width and coloring each point by species. A custom SVG color legend allows hovering over species names to highlight matching points while dimming others through opacity changes. Built with React and D3 v5, the visualization uses `scaleOrdinal` for color mapping, `scaleLinear` for axes, and a `ColorLegend` component with `onMouseEnter` and `onMouseOut` event handlers. Data is loaded asynchronously via `d3.csv`, with points rendered as SVG circles.
AI-generated descriptionaerg