🌍 Public
Viewing a saved revision (read-only)
709bb5a747e242709f50bd4e9422810a
Activity6_IRIS-Task3.1
This example visualizes the Iris dataset with a scatter plot of petal length against petal width, coloring each point by species (setosa, versicolor, or virginica). It uses D3 v6’s `csv`, `scaleLinear`, `extent`, `axisLeft`, `axisBottom`, and `select` to load data, map scales, and render axes, while circles are drawn with SVG attributes. The plot is sized to the window and displays axis labels for both petal and sepal measurements, with a legend implied through color coding.
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.