🌍 Public
Viewing a saved revision (read-only)
35b4fd1b1d0844c59f25fd3c071c872f
Activity6_Task3
This visualization displays the Iris dataset as a scatter plot, mapping petal length on the x-axis and petal width on the y-axis while coloring each point by species. Using D3 v6, it loads CSV data via `d3.csv`, applies `scaleLinear` for both axes, and renders circles with `d3.selectAll` and `.join`. Axis labels are added via `axisLeft` and `axisBottom`, with rotated text for the vertical label. Despite naming variables for sepal length and width, only petal dimensions are plotted, while species hues are hardcoded for setosa, versicolor, and virginica.
AI-generated descriptionWe are Displaying the IRIS dataset using Scatter plot.