🌍 Public
Viewing a saved revision (read-only)
f4405198cb6840d38e51819d34a6379b
activity6_Task3_tutorial3.1
This scatter plot visualizes the Iris dataset, showing the relationship between petal length and petal width, with each of the 150 flowers colored by species (setosa, versicolor, virginica). The chart uses a D3 v6 pipeline that loads CSV data from a GitHub repository, applies linear scales to map data values to pixel coordinates, and renders points as SVG circles with a fixed radius. The code leverages the `d3.csv`, `d3.scaleLinear`, `d3.extent`, `d3.axisLeft`, and `d3.axisBottom` APIs to construct axes and position marks, while a custom switch function assigns categorical colors to each species group.
AI-generated description