Activity 9&10
This interactive scatter plot animates through different pairings of the Iris dataset’s four measurements, cycling the x-axis between petal width, sepal width, petal length, and sepal length while keeping sepal length on the y-axis. Each species appears as a distinct color—sky blue, light green, or orange—with an animated legend and title rendered inside the SVG. The visualization uses d3.csv to load the data, d3.scaleLinear for axes, and d3.axisLeft and d3.axisBottom for scales, with a reusable scatterPlot function driving the transitions via setInterval.