🌍 Public
Viewing a saved revision (read-only)
0e01908ed0bb4a4b880af94a40c2f3a6
Activity6_Task3
This scatter plot visualizes the Iris dataset, mapping petal length on the x-axis and petal width on the y-axis, with each point colored by species (skyblue for setosa, lightgreen for versicolor, orange for virginica). The code loads the dataset from a remote CSV URL using `d3.csv` and renders the plot as SVG using D3 v6’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs. The plot includes axis labels and a red title, with the layout sized to the browser window via `window.innerWidth` and `window.innerHeight`.
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.