tutorial3.1
✓ Published0🌍 Public
This example shows an interactive scatter plot of the Iris dataset, plotting sepal length against petal length and encoding flower species with different marker shapes. It loads D3 v7 via UNPKG and uses a modular ES6 structure with local modules for axes, scatter plot, and a custom shape legend. The visualization fetches CSV data, parses it with d3.csvParse, and renders SVG marks using d3.symbol and d3.scaleOrdinal with symbolsFill. Axes are generated with d3.axisLeft and d3.axisBottom.
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