Skip to main content
100%

d3 scatter plot

✓ Published1🌍 Public
FFrancisco Ibelles
Last edited Feb 16, 2024
Created on Feb 14, 2024
Forked from HTML Starter

This example visualizes the classic Iris dataset as a scatter plot, comparing petal length on the x-axis with sepal length on the y-axis for 150 flowers. The visualization uses D3 v7 with vanilla JavaScript to load the CSV data via `d3.csv`, parse the numeric fields, and render SVG circles positioned through `d3.scaleLinear` scales. Axes are drawn using `d3.axisLeft` and `d3.axisBottom`, while the chart fills the entire browser viewport with margins applied around the plot area.

AI-generated description

create a scatter plot with D3 and vanilla javascript

MIT Licensed

Similar vizzes