Activity6_Task3.2
✓ Published0🌍 Public
This example shows a scatter plot of the Iris dataset, mapping sepal length on the x-axis and petal length on the y-axis, with points shaped according to species. It renders vector graphics in an SVG canvas, loading data from a remote CSV via `fetch` and parsing it with `d3.csvParse`. The visualization uses D3 v7 APIs including `scaleLinear`, `scaleOrdinal`, `extent`, `symbolsFill`, and `symbol()` to position marks and generate shapes, while `axisLeft` and `axisBottom` from `d3` draw the axes. A custom legend displays the species-to-shape mapping.
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.
MIT Licensed