Activity 7 tutorial
✓ Published0🌍 Public
This interactive scatterplot animates through different pairings of the Iris flower dataset’s measurements, cycling its x-axis among petal width, sepal width, petal length, and sepal length while keeping sepal length on the y-axis. Using D3 version 6, it builds a reusable scatter plot via the `scatterPlot` module, which employs `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to render SVG axes and circles. A `setInterval` updates the x-value accessor, and custom legend labels, colored by species (setosa, versicolor, virginica), are drawn alongside the animated transitions.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed