🌍 Public
Viewing a saved revision (read-only)
9dd7dd2ee181422f9e49d5e6e1dd8b2a
Activity8-Task3
This scatterplot visualizes the Iris dataset, mapping petal length on the x-axis and petal width on the y-axis, with each iris flower represented as a colored circle. Points are colored by species—setosa in sky blue, versicolor in light green, and virginica in orange—using D3 v6’s `selectAll`, `data`, and `join` methods. The SVG rendering applies linear scales via `scaleLinear` and `extent`, while `axisLeft` and `axisBottom` generate labeled axes. Data is loaded asynchronously from a remote CSV using `d3.csv`, with sepal measurements also parsed but not displayed in the plot.
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.