🌍 Public
Viewing a saved revision (read-only)
147836b63ea3432b81c2a2f3d2a0a308
Assignment -2
This animated scatterplot explores the classic Iris dataset, cycling through different sepal and petal measurements on the x-axis while keeping sepal length on the y-axis. Each point is colored by species, with a fixed legend and color scheme. The visualization uses D3.js, employing `scaleLinear`, `axisLeft`, and `axisBottom` from the D3 library to construct the plot. SVG rendering and a `setInterval` loop drive the animations, swapping the x-axis variable every few seconds to reveal different relationships in the data.
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.