Tutorial3.2
✓ Published0🌍 Public
This example creates a scatter plot of the Iris dataset, visualizing sepal length against petal length and using different symbols to distinguish species. It demonstrates a modular D3 v7 workflow, loading the library via UNPKG and importing local ES6 modules for axes, the scatter plot, and a custom shape legend. The visualization fetches its data from a GitHub-hosted CSV and parses it with `csvParse`. The code highlights modern D3 APIs like `select`, `join`, `scaleLinear`, `scaleOrdinal`, and the `symbol` generator to build interactive, data-driven graphics.
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