Activity6Task3
✓ Published0🌍 Public
A scatter plot of the Iris dataset displays petal length and width, with each point colored by species using a manual `switch` statement. The visualization is rendered as an SVG using D3 v6, loading data via `d3.csv`. It uses `d3.select` for DOM selection, `d3.scaleLinear` for axes, and `d3.extent` to compute domain ranges, with `d3.axisLeft` and `d3.axisBottom` for chart labels. Circle radii are set by a fixed constant, while `rx` and `ry` properties are erroneously assigned but not used for ellipse drawing.
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