Tutorial 2 D3
This visualization displays the Iris flower dataset, plotting petal length against petal width. Each of the three species (setosa, versicolor, virginica) is represented by a distinct SVG symbol—circle, cross, or diamond—and colored using a categorical scale. The view includes a linear regression line calculated from the data and displayed with its equation, alongside a legend. Mouseover interactions reveal a tooltip showing the exact coordinates of each point. Built with D3 v4, the code uses `d3.scaleLinear`, `d3.axisBottom`, `d3.axisLeft`, `d3.symbol`, `d3.line`, and `d3.csv` to load the external CSV.