activity 6
This visualization displays the classic Iris dataset as a scatter plot, mapping sepal width on the x-axis against sepal length on the y-axis, with each of the three Iris species color-coded in distinct hues. The code uses d3.tsv to load the tab-separated data, d3.scaleLinear to create the axes, and d3.scaleOrdinal to assign colors to species. The reusable chart component builds an SVG with interactive elements like axis labels, a title, and a legend, rendered through D3 v7’s selection and data-binding APIs.