🌍 Public
Viewing a saved revision (read-only)
d4d06430ab9f49a1ab3f6b4dc9437445
Assignment 2 task1
This interactive visualization displays the Iris dataset through a dynamic scatter plot, cycling through different feature pairs on the x-axis every few seconds. The code uses D3’s `scaleLinear`, `axisBottom`, and `axisLeft` to construct the plot, while circles are colored by species (setosa, versicolor, virginica) via a custom marker function. The animation leverages `setInterval` to update the x-axis mapping, with axes, labels, and a legend re-rendered through `selection.call`. Data loads from a CSV URL using D3’s `csv` parser, and the SVG graphic updates in place.
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.