Skip to main content
100%

Scatter Plot with Color Legend

✓ Published0🌍 Public
MMorgan Worrell
Last edited Sep 1, 2023
Created on Sep 1, 2023

This scatter plot visualizes the iris dataset, mapping petal length on the x-axis and sepal width on the y-axis. Each point represents a flower specimen, colored by species using an ordinal color scale, with a legend showing the species categories. The visualization is built with React and D3 v5, using `scaleLinear` and `scaleOrdinal` for scales, `extent` for domain calculation, and custom SVG components for axes, marks, and the color legend. Data is loaded asynchronously from a remote CSV using D3’s `csv` method.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React to render a scatter plot of the iris dataset.

MIT Licensed

Similar vizzes