Skip to main content
100%

Scatterplot with Color

✓ Published1🌍 Public
Aafcchilders
Last edited Jan 19, 2022
Created on Jan 19, 2022

This scatterplot visualizes the Iris flower dataset, mapping sepal length and width across the x- and y-axes while encoding species with a categorical color scale. Each point is an SVG circle rendered through React components, with axes built using custom `AxisBottom` and `AxisLeft` components that leverage `d3.scaleLinear` for positioning. The code loads the CSV via `d3.csv`, applies numeric parsing, and uses `d3.scaleOrdinal` to assign distinct colors to each species. Hovering reveals tooltips formatted with `d3.format` to abbreviate large numbers.

AI-generated description

A program that loads in some data about CSS colors

MIT Licensed

Similar vizzes