Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making A Color Legend

Public visualization

Making A Color Legend

0 stars1🌍 Public
MMichael Bergerson
Last edited Feb 9, 2021
Created on Feb 9, 2021

This interactive scatter plot visualizes the classic Iris dataset, mapping petal length against sepal width. Each point is colored by species using a `d3.scaleOrdinal` color scale, with a custom color legend built from React components that displays the species names alongside colored circles. The visualization uses `d3.scaleLinear` for both axes, includes formatted tick labels, and incorporates tooltips via SVG `<title>` elements. Rendering is done through React and D3 v5, with data loaded asynchronously from a CSV file.

AI-generated description

A scatter plot of The Iris Dataset.

Comments

Sign in to join the discussion.

MIT Licensed