🌍 Public
Viewing a saved revision (read-only)
4d34ec40ac0246d1ae572c926f8cba6e
Activity_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, lightgreen, or orange). The plot displays the relationship between these two variables across the three iris species. Using D3.js v6 with an SVG rendering, the code loads data from a remote CSV file, parses numeric fields, and uses `scaleLinear` and `extent` to map values to screen coordinates. Axes are generated with `axisLeft` and `axisBottom`, while circles are bound to data via `selectAll` and `join`.
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.