Activity6_Task_3.2
✓ Published0🌍 Public
This example demonstrates a scatter plot that visualizes the Iris dataset, mapping sepal length on the x-axis and petal length on the y-axis while using different symbol shapes to distinguish species. The visualization is built with D3 v7, importing specific functions like `scaleLinear`, `scaleOrdinal`, `symbol`, and `axisLeft` from the d3 module. Data loads asynchronously from a CSV file hosted on GitHub, is parsed with `csvParse`, and rendered as SVG paths. A custom legend module shows the shape-to-species mapping, with axes and labels added programmatically.
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