Activity-8_task-3.1
✓ Published0🌍 Public
This example shows a scatter plot of the Iris dataset, coloring each point by species (setosa, versicolor, or virginica) and plotting petal length against petal width on the axes. It uses D3 v6 via UNPKG, loading data from a GitHub CSV file with `d3.csv` and parsing numeric fields. The code builds an SVG visualization with `scaleLinear`, `extent`, `axisLeft`, and `axisBottom`, and draws circles with radii of 5 pixels. Axis labels and rotated text are added, with the chart sized to the full browser window.
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