🌍 Public
Viewing a saved revision (read-only)
acbfff54e6b34f008c5e47ee9f6e1b34
Polished Scatter Plot with Menus and Colors and Color Legend
Sstephanie0215
Last edited Oct 1, 2022
Created on Oct 1, 2022
Forked from Polished Scatter Plot with Menus and Colors
This interactive scatter plot visualizes the Iris dataset, allowing users to explore relationships between sepal and petal measurements. It uses React state to track the selected axes, dynamically updating the chart when users change the X and Y dropdown menus. The visualization renders as an SVG, with each species color-coded via a `d3.scaleOrdinal` color scale, and includes a color legend to identify species. D3’s `scaleLinear` handles the continuous axes, while custom `AxisBottom` and `AxisLeft` components render the ticks.
AI-generated descriptionA program that loads in some data using D3 utilities, and uses REACT state to keep track of the data.