Viewing a saved revision (read-only)
4480607013e043bd98b923b143ffaa25
Activity6_taks3.1
A scatter plot visualizes the Iris dataset, displaying petal length on the x-axis and petal width on the y-axis, with points colored by species (setosa, versicolor, virginica) using skyblue, lightgreen, and orange. The D3 v6 code loads CSV data via `d3.csv`, scales the values with `d3.scaleLinear`, and renders SVG circles with `d3.selectAll` and `join`. It uses `d3.axisLeft` and `d3.axisBottom` for labeled axes, while hardcoded text labels for both axes appear to be mislabeled, with the y-axis reading "Petal_Length" and the x-axis "sepal_Length". The visualization fills the browser window using `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.