🌍 Public
Viewing a saved revision (read-only)
f9dd4f05a845433996d741fe2da6a1ad
Task-9 Tutorial
An animated scatter plot visualizes the Iris dataset, cycling through four feature pairs on the axes to compare petal and sepal dimensions across three species. The D3.js v5 code uses `csv` to load data and `scaleLinear`, `axisLeft`, and `axisBottom` to construct axes. A `setInterval` timer updates the x-value mapping each second, while SVG circles are redrawn with species-specific colors. A legend and axis labels are added dynamically, with text elements recreated on each cycle. The visualization renders in an SVG canvas sized to the window.
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.