🌍 Public
Viewing a saved revision (read-only)
ca6441a1576245cb99ee72176fefbb42
Acitivity6_Task3.1
This example renders a scatter plot of the Iris dataset, encoding petal length and petal width on the x- and y-axes, with points colored by species (skyblue for setosa, lightgreen for versicolor, and orange for virginica). The visualization uses D3.js v6 to load the CSV from a GitHub repository, parse the data, and build an SVG plot with scaled linear axes, tick labels, and an axis legend. The code also incorrectly assigns the `rx` and `ry` attributes to circles using sepal measurements, though these do not affect circle appearance. Axis labels are added manually via SVG text.
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.