Reusable Scatter plot Activity 8
This interactive scatter plot visualizes the Iris dataset, cycling through four measurement pairs (petal width, sepal width, petal length, sepal length) on the x-axis while keeping sepal length on the y-axis. Points are colored by species (setosa, versicolor, virginica) with a legend, and axis labels update dynamically. Built with D3.js, the example demonstrates reusable chart modules via `scatterPlot()` with `scaleLinear`, `axisLeft`, and `axisBottom`, and uses SVG rendering with animations driven by `setInterval` to switch between dimensions.