Skip to main content
100%

Scatter Plot

✓ Published2🌍 Public
MMonish Vassantrai
Last edited Mar 17, 2021
Created on Mar 16, 2021

This scatter plot visualizes the Iris dataset, comparing sepal length against sepal width for individual flowers. The visualization uses React components to render an SVG, with D3’s `scaleLinear` and `extent` functions mapping data values to pixel coordinates, and axes generated via `xScale.ticks()` with custom tick formatting. Data is loaded asynchronously from a CSV URL using the `csv` function and a custom `useFetch` hook, with circles representing each observation and native SVG `<title>` elements providing hover tooltips.

AI-generated description

A scatter plot of the Iris dataset

MIT Licensed

Similar vizzes