🌍 Public
Viewing a saved revision (read-only)
92356e63b78d4d829bfe999ef1dc2699
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 descriptionWe are Displaying the IRIS dataset using Scatter plot.