🌍 Public
Viewing a saved revision (read-only)
5da46c6340e441668a03e25256672f7f
Activity 7
This interactive scatter plot animates through different x-axis variables of the Iris dataset, cycling between petal width, sepal width, petal length, and sepal length. The visualization uses D3 v6 to load CSV data, render SVG circles colored by species, and update axes dynamically via `setInterval`. It implements a reusable chart pattern with `scatterPlot.js` exporting a configurable function that uses `scaleLinear`, `extent`, and axis components. The animation demonstrates how the same data points reposition as different dimensions are mapped to the x-axis, with circles maintaining fixed colors and a static y-axis.
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.