🌍 Public
Viewing a saved revision (read-only)
4d5c49edbe314abab9b98e27b8ae4100
Activity 6 _task 3.2
This scatter plot displays the relationship between sepal length and petal length for iris flowers, with species encoded through distinct point shapes and a corresponding legend. The visualization loads its dataset from a CSV file hosted on GitHub. Built with D3 v7, the code employs `scaleLinear` for both axes, `scaleOrdinal` with `symbolsFill` for shape mapping, and custom functions `axes` and `shapeLegend` to render axes and the categorical legend. Data parsing uses D3's `csvParse`, and the plot is redrawn whenever the window is resized.
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.