🌍 Public
Viewing a saved revision (read-only)
1f5894ff12a94f668311575facc3d58f
Activity8_Task3
This scatter plot visualizes the Iris dataset, showing the relationship between petal length and petal width, with data points colored by species (setosa, versicolor, virginica). It loads CSV data from a GitHub repository using D3 v6’s `csv` function, then employs `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to map coordinates and render axes. The SVG circles are positioned via `cx` and `cy`, with colors assigned through a switch statement. The chart fills the browser window using `window.innerWidth` and `window.innerHeight`, with axis labels displayed in green.
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.