🌍 Public
Viewing a saved revision (read-only)
9ae33ff629284b68b6bae18e03dcb928
act 7.1
This animated scatterplot explores the Iris dataset, cycling through four feature pairings on the axes every few seconds. Each point represents a flower, colored by species (setosa, versicolor, virginica) with a fixed legend and title. The visualization is built with D3.js, using `scaleLinear`, `axisLeft`, `axisBottom`, and a reusable `scatterPlot` function. SVG elements are updated via `setInterval` to swap the x-axis variable, while separate circle elements encode the current marks and static legend shapes persist.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.