Task9&10
✓ Published0🌍 Public
This example presents an animated scatterplot of the Iris dataset, cycling through four different variable pairings on the x-axis while keeping petal width on the y-axis. Points are colored by species (setosa, versicolor, virginica) and rendered as ellipses using their sepal dimensions. The visualization uses D3 v6 via UNPKG, employing `scaleLinear`, `axisLeft`, and `axisBottom` from the scatterPlot module. A `setInterval` updates the x-value mapping every few seconds, while SVG elements like circles and text labels are dynamically joined and appended. Data loads from a CSV URL using `d3.csv`.
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.
MIT Licensed