Reusable Scatter plot Activity 8
✓ Published0🌍 Public
This interactive scatter plot visualizes the Iris dataset, cycling through different feature combinations on the x-axis every few seconds while keeping petal width on the y-axis. Points are colored by species—skyblue for setosa, lightgreen for versicolor, and orange for virginica—with a legend and axis labels. Built with D3 v6, the reusable `scatterPlot` module uses `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to render scales and axes, while ES6 modules load CSV data from a GitHub gist. The animation leverages `setInterval` to update the x-value mapping and re-render the SVG.
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