Reusable Scatter plot Activity 8
✓ Published0🌍 Public
An animated scatter plot cycles through different x-axis variables, plotting iris flower measurements of petal and sepal length and width. The visualization uses D3.js to create SVG circles, coloring each point by species and displaying a corresponding legend. Data is loaded from a CSV file via `d3.csv`. The plot updates at intervals, rotating which column appears on the x-axis while keeping sepal length fixed on the y-axis, all rendered with dynamic axes and labels.
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