Skip to main content
100%

Scatterplot with Color

✓ Published1🌍 Public
KK3zter
Last edited Dec 17, 2021
Created on Dec 17, 2021

This interactive scatterplot visualizes the Iris dataset, plotting petal length against sepal width. Each flower specimen appears as a circle colored by species using d3.scaleOrdinal with a categorical color palette. The visualization is built with React and D3 v7, using SVG rendering for precise control. Axes are generated with d3.scaleLinear, and circles include native SVG `<title>` elements providing tooltips on hover. Data is loaded asynchronously from a CSV file using d3.csv, with numeric parsing applied to measurement columns.

AI-generated description

A scatterplot of the Iris dataset

MIT Licensed

Similar vizzes