🌍 Public
Viewing a saved revision (read-only)
09cff1b7750d47eab7504a2369aaad67
Activity_6_tutorial3.2
A scatter plot visualizes the Iris dataset, showing sepal length on the x-axis and petal length on the y-axis, with each species represented by a distinct shape (circle, square, etc.). The plot includes axes with labels and a legend identifying the species categories. The visualization uses D3 v7’s `scaleLinear`, `scaleOrdinal`, `symbolsFill`, and `symbol` APIs to map data values to positions and shapes, while the `axes` and `shapeLegend` components construct the chart and legend. Data is loaded from a remote CSV file and parsed with `csvParse`.
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.