Skip to main content
100%

Scatter Plot with Color Legend

✓ Published1🌍 Public
OOlof Ollerstam
Last edited Dec 21, 2021
Created on Dec 9, 2021

A scatter plot of the Iris dataset shows petal length against sepal width, with each of the three iris varieties colored distinctly via an ordinal color scale and a legend. Built with React and D3 v5, it uses `d3.scaleLinear` for the axes and `d3.scaleOrdinal` for colors, rendering SVG circles with hover tooltips formatted via `d3.format`. The chart reads data from a CSV file loaded with `d3.csv`, with axes and legend drawn as reusable React components.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes