Skip to main content
100%

Fork of Scatter Plot with Color

✓ Published0🌍 Public
AAnthony Le
Last edited Aug 18, 2024
Created on Aug 18, 2024

This example visualizes the classic Iris dataset as a scatter plot, mapping petal length to the x-axis and sepal width to the y-axis. Each of the 150 flowers is drawn as an SVG circle, with its color encoding the species via a d3.scaleOrdinal. The React components render axes using d3.scaleLinear for positioning, while d3.ticks generate gridlines and labels. Data is loaded asynchronously through d3.csv, and tooltips appear on hover using SVG `<title>` elements.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes