🌍 Public
Viewing a saved revision (read-only)
fe1fb8e1d34044569a883f54b56431ab
Activity 6_Task 3.2
This scatter plot visualizes the Iris dataset, mapping petal length and petal width on the x- and y-axes while coloring each point by species (setosa, versicolor, virginica) in skyblue, lightgreen, or orange. The SVG rendering uses D3 v6’s `csv`, `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to load data, scale positions, and draw axes. Additional numeric values for sepal length and width are stored as `rx` and `ry` attributes on each circle, though the visible radius is fixed. The plot’s size adapts to the browser window using `window.innerWidth` and `window.innerHeight`.
AI-generated description