🌍 Public
Viewing a saved revision (read-only)
96659a8ef3d2455ea3faeb3e2b6e145f
Assignment-2 Task-1
This interactive scatter plot visualizes the Iris dataset, cycling through four different attribute pairs on the x-axis every few seconds while the y-axis remains fixed. Points are colored by species (setosa, versicolor, virginica) with a manually drawn legend. The visualization is built using D3 v6, leveraging `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` within a reusable `scatterPlot` function. Animated transitions are driven by `setInterval`, updating the x-axis mapping and re-rendering SVG circles, axes, and text labels dynamically.
AI-generated descriptionA demonstration of reusable scatter plot.