Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot

Public visualization

Viewing a saved revision (read-only)

a3ddb76dee414abfa6610ea6571a9934

Scatter Plot

0 stars2🌍 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