Skip to main content
100%

d3 Scatter Plot

✓ Published0🌍 Public
SSami Friedrich
Last edited Oct 23, 2025
Created on Oct 22, 2025
Forked from HTML Starter

This scatter plot visualizes the Iris dataset, showing petal length on the x-axis and sepal length on the y-axis for each flower specimen. The code loads the data as CSV via `d3.csv`, parses it with a custom row function, and maps values through `d3.scaleLinear` with `d3.extent` for domains. It renders SVG circles using a data join, adds axes via `d3.axisLeft` and `d3.axisBottom`, and reads the window size for a full-viewport layout. The example uses D3 v7 and styles tick labels with CSS.

AI-generated description
MIT Licensed

Similar vizzes