🌍 Public
Viewing a saved revision (read-only)
e8ab41760b264d75be396d42b0652c9c
Activity 7 Scatter Plot
This scatter plot visualizes the Iris dataset, mapping petal length and width for each flower sample while coloring points by species. The SVG rendering uses D3.js v6, loading data via CSV from a GitHub repository. The code employs `scaleLinear` for axes, `axisLeft` and `axisBottom` for tick marks, and `csv` for data parsing. Circles are positioned with `cx` and `cy` attributes, with species-specific colors assigned through a switch function.
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.