Activity 7 Tutorial
✓ Published0🌍 Public
This example visualizes the Iris dataset as an animated scatterplot, cycling through four flower measurements as x-axis values while keeping sepal length on the y-axis. Points are colored by species (Setosa, Versicolor, Virginica) with matching legend markers. The animation cycles through petal width, sepal width, petal length, and sepal length every few seconds. The code uses D3 v6 modules, including `csv`, `scaleLinear`, `axisLeft`, `axisBottom`, and `extent`, with a reusable scatter plot function and ES6 module imports. The SVG renders with custom labels, a color legend, and axis titles that update per iteration.
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