Activity_6_Q3.1
✓ Published0🌍 Public
This scatter plot visualizes the Iris dataset, mapping petal length on the x-axis and petal width on the y-axis while coloring each point by species (setosa, versicolor, virginica). The SVG rendering uses D3 v6 APIs including `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to construct the chart. The code loads CSV data directly from a GitHub repository via `d3.csv`, parses numeric fields, and encodes sepal measurements as the circle’s `rx` and `ry` attributes, though these do not affect the visible radius. Axis labels are added manually with rotated SVG text elements.
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