Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_7.1.1JS

Public visualization

Activity_7.1.1JS

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed