Fork of Activity - 6_Task-3.1
✓ Published1🌍 Public
This scatter plot visualizes the Iris dataset, mapping petal length against petal width for individual flowers, with each point colored by species (setosa, versicolor, or virginica). The plot uses D3 v6 APIs including `csv` for data loading, `scaleLinear` for axes, and `axisLeft`/`axisBottom` for ticks, rendered as SVG circles. While the code also defines sepal dimensions and attempts to set `rx`/`ry` attributes on circles (which have no effect), the primary visualization clearly shows the petal measurement distribution. The data is fetched from a GitHub-hosted CSV file.
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