Interactive Scatter Plot with Color Legend
✓ Published0🌍 Public
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.
MIT Licensed