Skip to main content
100%

Scatter Plot with Color Legend

✓ Published1🌍 Public
Jjwlam83
Last edited Jan 15, 2022
Created on Jan 15, 2022

This scatter plot visualizes the Iris Dataset, showing petal length against sepal width for individual flowers. Each data point is a circle colored by species, with a color legend positioned to the right displaying the three species categories. The visualization is rendered as a React component using SVG, with axes and marks generated through custom code that leverages D3 v5 utilities like `scaleLinear`, `scaleOrdinal`, and `extent`. The axes are drawn with reusable `AxisBottom` and `AxisLeft` components, and hovering reveals a tooltip with the formatted x-value.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes