Skip to main content
100%

Activity 7 tutorial

✓ Published0🌍 Public
Vvishnutejareddyambati@my.unt.edu
Last edited Nov 7, 2024
Created on Nov 7, 2024
Forked from D3 Starter

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 description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes