Skip to main content
100%

Fork of Activity_7

✓ Published0🌍 Public
Ssreejabommineni1506@gmail.com
Last edited Apr 6, 2025
Created on Apr 6, 2025
Forked from Activity_7

This dynamic scatter plot animates through the Iris flower dataset, cycling the x-axis through four different measurements (petal width, sepal width, petal length, sepal length) while the y-axis remains fixed on sepal length. The visualization uses D3.js (v6) with a reusable `scatterPlot` module that employs `scaleLinear` for axis scaling and `axisBottom`/`axisLeft` for rendering axes. Data is loaded via `d3.csv` from a GitHub gist and rendered as SVG circles colored by species (setosa, versicolor, virginica). The animation uses `setInterval` to update the x-axis mapping every few seconds, with labels and legends redrawn each iteration.

AI-generated description
MIT Licensed

Similar vizzes