🌍 Public
Viewing a saved revision (read-only)
4e6112c772b349978deb503da7955234
ass 9
An animated scatter plot of the Iris dataset cycles through four measurement pairs on the x-axis while keeping petal width on the y-axis, coloring points by species. Using D3's `csv` loader and `scaleLinear`, the visualization animates with `setInterval`, re-binding scales to chosen columns and redrawing axes via `axisBottom` and `axisLeft`. SVG circles are joined to data, with legend and labels added manually. The animation switches x-axis attributes among petal width, sepal width, petal length, and sepal length, updating the chart each second.
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.