Reusable Scatter plot Activity 8
✓ Published0🌍 Public
This example presents an animated scatter plot of the Iris dataset, cycling through different pairings of sepal and petal measurements on the x-axis while keeping petal width on the y-axis. Each point is colored by species, with a legend and explicit axis labels that update with the animation. The visualization is built using D3.js version 6.7.0, loading data via the `csv` function and leveraging a custom `scatterPlot` module that uses `scaleLinear`, `extent`, `axisLeft`, and `axisBottom`. The SVG rendering is refreshed on an interval, updating axes and labels dynamically.
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