Reusable Scatter plot Activity 8
This example displays the classic Iris flower dataset as an animated scatter plot, cycling through four different feature pairings on the axes every few seconds. The visualization uses a reusable `scatterPlot` module built with D3 v6, which leverages `scaleLinear`, `axisLeft`, and `axisBottom` to render axes. Points are colored by species (setosa, versicolor, virginica) and include a custom legend with labels. The animation is driven by `setInterval`, updating the plot's x-value accessor to switch between petal width, sepal width, petal length, and sepal length, while the SVG rendering updates accordingly.