Activity 6 tutorial 3.1
✓ Published0🌍 Public
This example shows a scatter plot of the Iris dataset, mapping petal length and petal width on the x- and y-axes while coloring each point by species (setosa, versicolor, or virginica). It loads the data from a remote CSV using d3.csv, scales the coordinates with d3.scaleLinear, and renders circles as SVG elements. The plot includes labeled axes generated by d3.axisLeft and d3.axisBottom, with gradient-colored data points and fixed radius.
AI-generated descriptionMIT Licensed