🌍 Public
Viewing a saved revision (read-only)
b38ce07b7b77441295a31f41c0a29f35
Activity_3
This scatter plot visualizes the Iris dataset, showing petal length on the x-axis and petal width on the y-axis, with each point colored by species (setosa, versicolor, or virginica) using skyblue, lightgreen, and orange. The code loads CSV data via `d3.csv`, scales the axes with `d3.scaleLinear`, and renders circles as SVG elements using `d3.select` and `d3.join`. Axis labels are added with `d3.axisBottom` and `d3.axisLeft`, though the y-axis label incorrectly reads "Petal_Length" while the x-axis label says "sepal_Length".
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.