Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot with Menus

Public visualization

Viewing a saved revision (read-only)

0074393168624c80aebbb2cbbba302a1

Scatter Plot with Menus

0 stars0🌍 Public
CCatalina Vajiac
Last edited Mar 3, 2022
Created on Mar 2, 2022

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 description

A scatter plot of The Iris Dataset.