Skip to main content
100%

Making a Color Legend

✓ Published1🌍 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.

MIT Licensed

Similar vizzes