Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Scatter Plot with Color

Public visualization

Fork of Scatter Plot with Color

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed