🌍 Public
Ass8_task3.2
This example demonstrates a scatter plot of the Iris dataset, encoding sepal length on the x-axis, petal length on the y-axis, and species as categorical shape symbols. It uses D3 v7 modules including `scaleLinear`, `scaleOrdinal`, `symbol`, and `axisLeft`/`axisBottom` to render axes and a custom shape legend. The data is loaded via `fetch` from a GitHub raw CSV and parsed with `csvParse`, with numeric fields coerced to numbers before plotting in a full-window SVG.
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
Comments
Sign in to join the discussion.