🌍 Public
Viewing a saved revision (read-only)
5d342771c8d941b3b4b38d4592b8c286
Scatter Plot with Menus
This interactive scatter plot visualizes the Iris dataset, allowing users to select which flower measurements appear on the x and y axes via dropdown menus. The plot uses React dropdowns to control the axes, with d3.scaleLinear for positioning and d3.scaleOrdinal for species-based coloring. Hovering over the color legend highlights points of a selected species, using React’s useState to manage the hovered value, while SVG circles render each data point with tooltips.
AI-generated descriptionA scatter plot of The Iris Dataset.