Fork of Interactive Color Legend
This interactive scatter plot visualizes the Iris dataset, displaying petal length against sepal width for three flower species. Hovering over a species in the color legend highlights only that species’ data points while dimming all others. The visualization uses React with D3 scales (`scaleLinear`, `scaleOrdinal`) for positioning and coloring, and SVG circles for rendering. The color legend implements mouse-event handlers to update hovered state, which filters the data and adjusts opacity for the fade effect.