🌍 Public
Viewing a saved revision (read-only)
352dc03f13df44fba125157a0f5a86e9
Activity6_Task3
This scatter plot visualizes the Iris dataset, mapping petal length and width on the axes while coloring each point by species (setosa, versicolor, virginica) using skyblue, lightgreen, and orange. The D3 v6 code loads CSV data via `d3.csv`, applies `d3.scaleLinear` for both scales, and renders circles with `d3.selectAll` and `d3.axisLeft`/`d3.axisBottom` for labeled axes. Sepal dimensions are also stored per point but not directly visualized, with the SVG output adapting to the full viewport size.
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.