Activity-8_Task-3.1
✓ Published0🌍 Public
This example uses D3 v6 to render a static scatter plot of the Iris dataset. It maps petal length and petal width to the x and y positions of circles, while coloring each point by species (setosa, versicolor, or virginica). The code loads CSV data from a GitHub raw URL, parses numeric fields, and uses `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to construct the axes. It also includes axis labels rendered as SVG text elements. The visualization is rendered directly to an SVG canvas using data joins with `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.
MIT Licensed