Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Scatter Plot Following Along

Public visualization

Viewing a saved revision (read-only)

3da7049d8307428588f1c0ac4f128f1c

D3 Scatter Plot Following Along

0 stars2🌍 Public
PParker-D5
Last edited Sep 28, 2023
Created on Sep 28, 2023
Forked from HTML Starter

This example displays the classic Iris dataset as a scatter plot, mapping petal length along the x-axis and sepal length along the y-axis. The visualization uses D3 v7’s `scaleLinear` and `extent` functions to compute the domain from the CSV data, then renders circles via SVG selection joins. Axis components are generated with `axisLeft` and `axisBottom`. The plot fills the entire browser window, with data loaded asynchronously from a GitHub gist, parsed to numeric values, and drawn with fixed 5-pixel radius points.

AI-generated description