Assignment2
✓ Published0🌍 Public
This example presents an interactive scatterplot of the Iris dataset, cycling through different flower measurements on the x-axis every few seconds. The visualization colors each of the three species—setosa, versicolor, and virginica—with distinct hues and includes a legend with labeled color swatches. Users see dynamically updated axes and titles as the displayed variable changes. The code loads data from a GitHub-hosted CSV and uses D3 v5’s `csv`, `scaleLinear`, `axisLeft`, `axisBottom`, and `selectAll` with `join` to render animated SVG circles.
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