🌍 Public
Viewing a saved revision (read-only)
d3abebd846bb43d4a8deb190f7617a45
Activity6-task3
This visualization displays the Iris dataset using a scatter plot, mapping petal length and width on the x and y axes while coloring each point by species (setosa, versicolor, virginica). The code loads data via `d3.csv`, scales positions with `d3.scaleLinear`, and renders circles as SVG elements with `d3.axisLeft` and `d3.axisBottom` for axes. Additional attributes for sepal dimensions are stored but not visualized. The chart uses red-labeled axes with green text and a full-screen responsive SVG canvas.
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.