Reusable Scatter plot Activity 8
✓ Published0🌍 Public
This interactive SVG scatter plot cycles through Iris flower measurements, comparing petal width, sepal width, petal length, and sepal length on the x-axis against sepal length on the y-axis. D3.js (v6) scales axes and animates transitions via `setInterval`, while points are colored by species (setosa, versicolor, virginica) using a manual marker mapping. The example loads data from a remote CSV, builds the chart with a custom `scatterPlot` module using `scaleLinear`, `axisLeft`, and `axisBottom`, and includes a static color legend.
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