🌍 Public
Viewing a saved revision (read-only)
dd52b04898bf412a995a9377434d7615
activity6_task3
This scatter plot visualizes the Iris dataset, mapping petal length on the x-axis and petal width on the y-axis, with points colored by species (setosa, versicolor, and virginica). The visualization encodes sepal length and width as the rx and ry attributes of each circle, creating elliptical markers whose dimensions vary with the data. Built with D3 v6, the code uses `d3.csv` to load data from a GitHub URL, `scaleLinear` and `extent` for scaling, and `axisLeft`/`axisBottom` for axes. Data is parsed from CSV columns into numeric values before rendering as SVG circles.
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.