Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

HW1 : Interactive Polished Scatter Plot with Menus and Colors and Color Legend

Public visualization

Viewing a saved revision (read-only)

f982673895d04a42ab3af4b4b41b872f

HW1 : Interactive Polished Scatter Plot with Menus and Colors and Color Legend

0 stars0🌍 Public

This interactive scatter plot visualizes the Iris dataset, allowing users to select which flower measurements to compare on the X and Y axes via dropdown menus. The plot displays all 150 data points, colored by species, with a legend that highlights a selected species while fading the others. Built with React and D3 v7, the visualization uses D3’s `scaleLinear` and `scaleOrdinal` to map data to coordinates and colors, and renders the chart as SVG.

AI-generated description

A program that loads in some data using D3 utilities, and uses REACT state to keep track of the data.