Skip to main content
100%

Activity6_Task3

✓ Published1🌍 Public
AAftab Hussain
Last edited Apr 2, 2025
Created on Mar 31, 2025
Forked from Hello VizHub

This visualization displays a scatter plot of the Iris dataset, mapping petal length on the x-axis and petal width on the y-axis, with each point colored by species (skyblue for setosa, lightgreen for versicolor, and orange for virginica). The code loads CSV data using `d3.csv`, scales the axes with `scaleLinear` and `extent`, and renders circles as SVG elements via `selectAll` and `join`. It includes custom axis labels using `axisLeft` and `axisBottom`, plus a legend built with appended SVG `rect` and `text` elements. The plot uses D3 v6.

AI-generated description
MIT Licensed

Similar vizzes