Skip to main content
100%

Activity 7.1 T

✓ Published0🌍 Public
Ttarun.chintada46@gmail.com
Last edited Nov 3, 2024
Created on Nov 3, 2024

An animated scatter plot of the Iris dataset cycles the x-axis through petal width, sepal width, petal length, and sepal length while the y-axis remains sepal length. Circles are colored by species (setosa, versicolor, virginica) with a custom legend. The visualization uses D3 v6 APIs such as `scaleLinear`, `axisLeft`, `axisBottom`, and `selectAll().data().join()` within a reusable `scatterPlot` function. A `setInterval` updates the x-value accessor, triggering a re-render with new SVG text, title, and axis labels. Data is loaded via `d3.csv` from a GitHub gist.

AI-generated description

A demonstration of reusable scatter plot.

MIT Licensed

Similar vizzes