Skip to main content
100%

5:53 Scatter Plot

✓ Published2🌍 Public
Uumgi
Last edited Feb 28, 2021
Created on Feb 28, 2021
Forked from 5:29 styling

This scatter plot displays the relationship between sepal length and sepal width in the classic Iris dataset, loaded via a CSV URL using D3's `csv` utility. The visualization is built with React, using SVG rendering and D3’s `scaleLinear` with `.nice()` to compute axis ranges. Each point is an SVG circle with a hover tooltip showing the x-value, formatted with D3’s `format` function. The axes are generated by custom React components, `AxisBottom` and `AxisLeft`, which map ticks and labels using the scales.

AI-generated description

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

MIT Licensed

Similar vizzes