Skip to main content
100%

Reusable Scatter plot Activity 8

✓ Published0🌍 Public
VVarshareddy2912
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

This example displays the classic Iris flower dataset as an animated scatter plot, cycling through four different feature pairings on the axes every few seconds. The visualization uses a reusable `scatterPlot` module built with D3 v6, which leverages `scaleLinear`, `axisLeft`, and `axisBottom` to render axes. Points are colored by species (setosa, versicolor, virginica) and include a custom legend with labels. The animation is driven by `setInterval`, updating the plot's x-value accessor to switch between petal width, sepal width, petal length, and sepal length, while the SVG rendering updates accordingly.

AI-generated description
MIT Licensed

Similar vizzes