🌍 Public
Viewing a saved revision (read-only)
de3e2c8c447d4108a1166fca763a341e
Task 3 3.2
This scatter plot shows the relationship between sepal length and petal length for three iris species, with each species represented by a distinct shape symbol. The visualization uses D3 v7 to render an SVG canvas, employing `scaleLinear` for both axes and `scaleOrdinal` with `symbolsFill` to map species to shapes. A custom shape legend displays the species symbols with labels. The data is fetched from a CSV file and parsed with `csvParse`, with numeric columns converted to numbers. The axes are drawn with `axisLeft` and `axisBottom` from D3's import, and the chart is built using the join pattern for declarative updates.
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.