🌍 Public
Viewing a saved revision (read-only)
fef16be2b90c4b99ab8459c007d91733
Activity 6 Task 3.2
This interactive scatter plot visualizes the Iris dataset, mapping sepal length to the x-axis and petal length to the y-axis while encoding species through distinct symbol shapes. The visualization uses D3 v7’s `scaleLinear`, `scaleOrdinal`, and `symbol` APIs to render marks and a custom shape legend. Data is loaded asynchronously from a GitHub-hosted CSV file using `d3.csvParse`, with axis labels generated via reusable `axisLeft` and `axisBottom` functions. Each point is drawn as a `path` element, and the legend displays the three species categories.
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.