Fork of Scatter Plot with Color
✓ Published0🌍 Public
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 descriptionA scatter plot of The Iris Dataset.
MIT Licensed