Activity6_Task3
✓ Published0🌍 Public
This scatter plot visualizes the Iris dataset, mapping petal length and width for each flower sample. The code loads the data from a GitHub-hosted CSV, and points are colored by species (skyblue, lightgreen, orange) using a switch function. Axes are created with `d3.axisLeft` and `d3.axisBottom`, while scales are defined by `d3.scaleLinear` and extents via `d3.extent`. All graphics are rendered as SVG circles using D3's join operation.
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.
MIT Licensed