Activity6_Tutorial3.2
✓ Published1🌍 Public
This example presents a scatter plot of the Iris dataset, mapping sepal length to the x-axis, petal length to the y-axis, and using distinct symbols to represent the three species. The visualization loads data from a remote CSV file using `fetch` and `csvParse`. D3 v7 scales, including `scaleLinear` and `scaleOrdinal`, position the marks and determine their shapes, while `axisBottom` and `axisLeft` render the axes. A custom legend built with `symbolGenerator` and `symbolsFill` identifies each species. Code is modularized into local ES6 modules for axes, plotting, and legend components.
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