🌍 Public
Viewing a saved revision (read-only)
071f4e4276a745d8b0a00df750faf8b4
Activity 6_Task 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 (skyblue for setosa, lightgreen for versicolor, orange for virginica). The code loads the CSV data from GitHub, uses `d3.scaleLinear` for axes, `d3.extent` for domain calculation, and `d3.axisLeft`/`d3.axisBottom` for tick labels, rendering circles via SVG with `d3.select` and `.join`. Axis labels are added as SVG text elements, and the plot fills the full browser window.
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.