Activity_6_Q3.2
✓ Published0🌍 Public
This example demonstrates a scatter plot of the Iris dataset, mapping sepal length to the x-axis and petal length to the y-axis, with species represented by distinct symbol shapes. It uses D3 v7, importing APIs like `scaleLinear`, `scaleOrdinal`, `schemeCategory10`, and `symbol` via ES6 modules. Data is fetched from a GitHub-hosted CSV and parsed with `csvParse`. The plot includes labeled axes and a custom shape legend, rendered using a combination of joined SVG elements and D3’s data-join pattern.
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