Skip to main content
100%

Fork of Interactive Polished Scatter w/ Menu, Colors, and Legend

✓ Published0🌍 Public
Cchriskrip
Last edited Jun 16, 2021
Created on Jun 16, 2021

This interactive scatter plot visualizes the Iris dataset using React and D3 v6, with dropdown menus to switch the x- and y-axis attributes among sepal and petal measurements. The SVG rendering includes a color legend for species that supports hovering to fade non-matching points, implemented through React state and D3’s `scaleOrdinal` color scale. Axis components use `d3.scaleLinear` with `ticks()` for gridlines and tick labels, while the data loads via `d3.csv` with numeric coercion.

AI-generated description

A Scatter Plot of the Iris Dataset

MIT Licensed

Similar vizzes