🌍 Public
Viewing a saved revision (read-only)
a18f21d60ff14bfe89780c2c04f6fe45
Interactive Scatter Plot with Color Legend
This interactive scatter plot visualizes the Iris dataset, plotting petal length against sepal width with each species represented by a distinct color. The visualization uses React and d3-scale functions (scaleLinear, scaleOrdinal) to map data to positions and colors. Hovering over the color legend highlights only the points belonging to that species while fading all others, with the legend item and matching data points responding to mouse events. The chart renders as SVG with custom AxisBottom and AxisLeft components.
AI-generated descriptionA scatter plot of The Iris Dataset with color legend.