Skip to main content
100%

D3 Scatter Plot

✓ Published1🌍 Public
Aainhoadieruiz@gmail.com
Last edited Dec 10, 2023
Created on Dec 9, 2023
Forked from HTML Starter

This D3 scatter plot visualizes the Iris dataset, mapping petal length on the x-axis and sepal length on the y-axis. The SVG rendering uses d3.scaleLinear to transform raw CSV values into pixel coordinates, with d3.min and d3.max defining the domains. Circles represent individual flowers, colored in a teal tone, while d3.axisLeft and d3.axisBottom generate labeled axes. The code loads data via d3.csv and appends text labels for both axes, using a full-window responsive layout with fixed margins.

AI-generated description

D3 Scatter Plot

MIT Licensed

Similar vizzes