🌍 Public
Viewing a saved revision (read-only)
825d8b82a92743fa9ee82438c1ef8519
35) Interactive Color Legend
This interactive scatter plot visualizes the Iris dataset’s petal length and sepal width, colored by species. A hoverable color legend lets users highlight points of a single species while fading others. Built with React and D3 v5, it uses `scaleLinear`, `scaleOrdinal`, and SVG circles, with mouse events on legend items updating state to toggle point opacity via the `Marks` and `ColorLegend` components.
AI-generated descriptionA program that loads in the Iris data set and and uses React to render the data.