Skip to main content
100%

Scatter Plot with Color

✓ Published1🌍 Public
Yyejichun@naver.com
Last edited Sep 9, 2022
Created on Dec 21, 2021

This example visualizes the Iris dataset as a scatter plot, mapping petal length to the x-axis, sepal width to the y-axis, and coloring each circle by species using a D3 ordinal scale. React renders the SVG, with reusable axis and mark components built on D3 scales like `scaleLinear` and `scaleOrdinal`. The data is loaded from a remote CSV via D3’s `csv` utility, and tooltips display formatted values through SVG `<title>` elements.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to render the data.

MIT Licensed

Similar vizzes