Skip to main content
100%

D3 Scatterplot Black and White Template

✓ Published4🌍 Public
AAndre J Denais
Last edited May 6, 2021
Created on May 4, 2021

This example renders the Iris dataset as a black-and-white SVG scatterplot, mapping petal length to the x-axis and sepal length to the y-axis. It loads the CSV via `d3.csv`, parses numeric columns, and uses `scaleLinear` with `extent` for domains. Circles are drawn through `selectAll(...).join('circle')`, while `axisLeft` and `axisBottom` generate the axes. The visualization fills the full browser window, with margins and a fixed radius of 5 pixels for each point.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.

MIT Licensed

Similar vizzes