Skip to main content
100%

Vanilla Scatter Plot

✓ Published1🌍 Public
Mmaxthamt
Last edited Jun 16, 2021
Created on Jun 15, 2021
Forked from HTML Starter

This example renders a scatter plot of the Iris dataset, mapping petal length to the x-axis and sepal length to the y-axis. The code uses D3 v6 with `d3.csv` to load data, `d3.scaleLinear` and `d3.extent` for scales, and `d3.axisLeft` and `d3.axisBottom` for axes. Circles are drawn via SVG using the general update pattern with `selectAll` and `join`. The plot fills the browser window, with margins and tick styling configured in CSS.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes