Skip to main content
100%

Activity_7.1.1JS

✓ Published0🌍 Public
Aadityatrip9899@gmail.com
Last edited Nov 7, 2024
Created on Nov 6, 2024

The visualization cycles through the four numeric columns of the Iris dataset—petal width, sepal width, petal length, and sepal length—as the x-axis, while keeping sepal length fixed on the y-axis. It renders an animated scatter plot using SVG circles, with colors mapping to species and a legend identifying each group. The code uses D3's `csv` loader, `scaleLinear`, `axisLeft`, and `axisBottom` within a reusable `scatterPlot` function, and updates the axes and points via `setInterval`.

AI-generated description

A demonstration of reusable scatter plot.

MIT Licensed

Similar vizzes