Viewing a saved revision (read-only)
7da6751b0bff4d05984ea15996dc57f7
task9&10DV
This animated scatter plot explores the Iris dataset by cycling through four feature combinations on the x-axis while keeping sepal length on the y-axis. It uses D3 v6 with a reusable `scatterPlot` module that employs `scaleLinear`, `axisLeft`, and `axisBottom` for responsive axes. The visualization displays color-coded points by species—skyblue for setosa, lightgreen for versicolor, and orange for virginica—with a legend, axis labels, and a title. The `setInterval` function rotates through petal width, sepal width, petal length, and sepal length, updating the visualization every few seconds as SVG circles are re-bound to 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.