Activity1
✓ Published0🌍 Public
This animated scatter plot visualizes the classic Iris dataset, cycling through different flower measurements on the x-axis—petal width, sepal width, petal length, and sepal length—while keeping petal width on the y-axis. It uses D3’s `scaleLinear`, `axisLeft`, and `axisBottom` to render axes, and a `setInterval` loop to update the plot’s x-value accessor. Data is loaded via `d3.csv` from a GitHub gist, with points colored by species (setosa, versicolor, virginica). The visualization includes a custom legend and title, demonstrating reusable chart components with ES6 module imports.
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.
MIT Licensed