Skip to main content
100%

Scatterplot with Color Legend

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

This scatterplot visualizes the Iris flower dataset, plotting sepal length against sepal width with points colored by species. A color legend maps species names to distinct hues, while axis labels and tick marks provide scale context. Built with React and D3 v7, the example uses `scaleLinear` for positioning, `scaleOrdinal` for categorical colors, and custom reusable components like `AxisBottom`, `AxisLeft`, and `ColorLegend` to render SVG elements. Data is loaded asynchronously via `csv` from a remote URL.

AI-generated description

A program that loads in some data about CSS colors

MIT Licensed

Similar vizzes