🌍 Public
Viewing a saved revision (read-only)
b0faa81134a6454bb093744686ea0db5
Fork of Reusable D3 Scatter Plot
This example visualizes the Iris dataset with a D3.js scatter plot, mapping petal length on the x-axis against sepal length on the y-axis. Each species—setosa, versicolor, and virginica—appears in a distinct color via a d3.scaleOrdinal color scale. The code loads CSV data with d3.csv, scales the axes using d3.scaleLinear, and renders circles in an SVG container with d3.axisBottom and d3.axisLeft for labeled axes.
AI-generated description