Reusable Scatter plot Activity 8
This animated scatter plot visualizes the Iris dataset, switching between four different flower measurements on the x-axis while sepal length remains constant on the y-axis. Points are colored by species (setosa, versicolor, virginica) and use custom ellipse-like shapes via circle elements with rx and ry attributes. The visualization updates every few seconds using setInterval, re-rendering axes through the d3.scaleLinear, axisLeft, and axisBottom APIs. A custom scatterPlot function manages the reusable chart structure, with data loaded via d3.csv from a GitHub gist and rendered as SVG.