🌍 Public
Viewing a saved revision (read-only)
338d2f1274364233a5b2215fd8a99ccd
Activity6_Tutorial3.2
This example demonstrates a scatter plot of the Iris dataset, mapping sepal length to the x-axis and petal length to the y-axis. It visualizes the three iris species using distinct shapes via a categorical scale and includes a custom shape legend. The visualization loads CSV data from a GitHub repository, uses d3.csvParse to parse it, and builds the chart with d3.scaleLinear, d3.scaleOrdinal, d3.symbol, and d3.axisLeft/axisBottom. Axes and legend are modularized into reusable ES6 modules.
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.