Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot with Color Legend

Public visualization

Viewing a saved revision (read-only)

d39e36d479c14ef59aa1fcda2a396141

Scatter Plot with Color Legend

0 stars0🌍 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.