Activity6_Task3.1
✓ Published1🌍 Public
This example renders a scatter plot of the classic Iris dataset, showing petal length on the x-axis and petal width on the y-axis, with each of the three species (setosa, versicolor, virginica) colored skyblue, lightgreen, or orange. It loads CSV data via `d3.csv`, parses numeric fields, and uses `scaleLinear` with `extent` to map values to SVG coordinates. Circles are bound with `selectAll` and `join`, while `axisLeft` and `axisBottom` generate labeled axes. The code accesses D3’s `csv`, `select`, `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs from d3.v6, and styling is applied through SVG attributes.
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