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
CChira Cezara Victoria
Last edited Oct 10, 2021
Created on Oct 10, 2021

A scatter plot of the Iris Dataset displays petal length against sepal width, with each point colored by species. A separate color legend identifies the three species using colored circles. Built with React and D3 v5, the visualization uses `scaleOrdinal` for the color mapping and `scaleLinear` for the axes. The SVG output includes custom axis components and a `ColorLegend` component that generates the legend ticks from the color scale's domain.

AI-generated description

A scatter plot of The Iris Dataset.

Comments

Sign in to join the discussion.

MIT Licensed