Skip to main content
100%

Scatter Plot with Color Legend

✓ Published1🌍 Public
BbeauMarko
Last edited Feb 9, 2021
Created on Feb 9, 2021

This scatter plot visualizes the Iris dataset, plotting petal length against sepal width with each point colored by species. The visualization uses D3 v6's scaleLinear and scaleOrdinal to map quantitative and categorical data, while React components render SVG axes, circles, and a color legend. The color legend displays distinct species categories, and hovering over points reveals their petal length values. Data is loaded via d3.csv from a remote URL, and the entire chart adapts to the browser window size.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes