🌍 Public
Viewing a saved revision (read-only)
e26bbc06d5934d2685cdedf0a6aed8d9
Activity-6 Task-3.2
This example shows a scatter plot of the Iris dataset, plotting sepal length against petal length with points shaped by species. It uses D3 v7 modules including `d3.scaleLinear`, `d3.scaleOrdinal`, `d3.symbol` with `symbolsFill` for shape encoding, and custom `axes` and `shapeLegend` functions. Data is fetched as CSV from a GitHub repository and parsed with `d3.csvParse`. The visualization updates responsively to the window size, with a legend positioned at a fixed coordinate.
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.