Skip to main content
100%

D3 Scatter Plot

✓ Published1🌍 Public
PPeiyang Li
Last edited Apr 14, 2023
Created on Apr 14, 2023
Forked from HTML Starter

This example shows a scatter plot of the Iris dataset, mapping petal length to the x-axis and sepal length to the y-axis. The visualization loads data from a CSV file hosted on GitHub using D3’s `csv` function, parses numeric columns, and renders circles in an SVG element. D3’s `scaleLinear` and `extent` compute the domain and range for both axes, while `select` and `join` create the circle marks. The chart fills the browser window.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes