Activity6_Tu_3.2
✓ Published0🌍 Public
This example creates an interactive scatter plot of the Iris dataset, using sepal and petal lengths as axes and species as categorical shapes. It loads CSV data from a GitHub repository via `fetch` and `csvParse`, then renders the chart with D3 v7. The visualization includes custom axis labels, a shape legend, and uses `scaleLinear`, `scaleOrdinal`, `symbolsFill`, and `symbol` to map data points to distinct marker types. The code is modularized into separate ES6 modules for axes, scatter plot, 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