🌍 Public
Viewing a saved revision (read-only)
c0542ee84e1743538cd3ba12f41ec4c2
activity 9
This animated scatter plot visualizes the Iris dataset, cycling through different pairings of sepal and petal measurements on the x-axis while keeping sepal length on the y-axis. Circles are colored by species via a custom marker function, with a legend and axis labels rendered as SVG text. Built with D3 v6, it uses `scaleLinear`, `axisLeft`, `axisBottom`, and `setInterval` to update the scatter plot's x-value binding every few seconds. Data is loaded asynchronously from a remote CSV file using `d3.csv` with row parsing.
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.