HW1 : Interactive Polished Scatter Plot with Menus and Colors and Color Legend
✓ Published0🌍 Public
Sstephanie0215
Last edited Oct 1, 2022
Created on Oct 1, 2022
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 descriptionA program that loads in some data using D3 utilities, and uses REACT state to keep track of the data.
MIT Licensed