3task_activity_6
✓ Published0🌍 Public
This example displays an interactive scatter plot of the Iris dataset, mapping sepal length to the x-axis and petal length to the y-axis, with species distinguished by different point shapes. It loads data asynchronously from a CSV file hosted on GitHub, parsing it with `csvParse` and converting numeric fields. The visualization uses D3 v7 APIs including `scaleLinear`, `scaleOrdinal`, `symbolsFill`, and `axisLeft`/`axisBottom` to render scales, axes, and a custom shape legend. The code demonstrates modular ES6 imports, separating scatter plot, axis, and legend logic into distinct local modules.
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