Activity 7.1 T
✓ Published0🌍 Public
An animated scatter plot of the Iris dataset cycles the x-axis through petal width, sepal width, petal length, and sepal length while the y-axis remains sepal length. Circles are colored by species (setosa, versicolor, virginica) with a custom legend. The visualization uses D3 v6 APIs such as `scaleLinear`, `axisLeft`, `axisBottom`, and `selectAll().data().join()` within a reusable `scatterPlot` function. A `setInterval` updates the x-value accessor, triggering a re-render with new SVG text, title, and axis labels. Data is loaded via `d3.csv` from a GitHub gist.
AI-generated descriptionA demonstration of reusable scatter plot.
MIT Licensed