activity3.1_6
✓ Published0🌍 Public
This example renders a scatter plot of the Iris dataset, showing petal length against petal width, with each point colored by species (setosa, versicolor, or virginica). The data is loaded from a GitHub-hosted CSV file using D3’s `csv` function. The visualization uses `scaleLinear` and `extent` to map values to screen coordinates, and `axisLeft` and `axisBottom` to draw axes. Circles are appended and styled via D3 selections with radii fixed at five pixels, while the code also references sepal measurements as unused properties.
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