Task 9
✓ Published0🌍 Public
This example demonstrates an animated scatterplot of the Iris dataset, cycling through different pairings of sepal and petal measurements on the x-axis while the y-axis remains fixed on sepal length. It uses D3’s `csv` loader, `scaleLinear`, `axisLeft`, `axisBottom`, and `selectAll`/`join` to render the SVG points and axes. A custom ES6 module defines a reusable `scatterPlot` function, while `setInterval` triggers the axis updates. Color-coded legend markers distinguish the three Iris species.
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