🌍 Public
Viewing a saved revision (read-only)
d51ab9dbc7834a1c871b4fc3018796d1
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