🌍 Public
Viewing a saved revision (read-only)
4599c2362b2e451f963a61295afaa3c1
activity7_tutorial
This animated scatter plot cycles through different Iris flower measurements, displaying petal width and sepal length on the axes while each species is colored distinctly. The visualization uses D3.js (v6) to load CSV data from a GitHub gist, render SVG circles and axes, and update the plot at intervals via `setInterval`. The code demonstrates a reusable `scatterPlot()` function with configurable scales and margins, alongside custom legend elements and axis labels.
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.