Activity6_Task3.2
✓ Published1🌍 Public
This example visualizes the classic Iris dataset as a scatter plot of sepal length versus petal length, coloring each point according to its species and using distinct fill symbols (circles, squares, etc.) to encode species, a shape legend appears on the right side. The implementation relies on D3 v7, using `d3.csvParse` to load the Iris CSV data, and then constructs the plot with `d3.scaleLinear`, `d3.scaleOrdinal`, `d3.symbol` for the point glyphs, and `d3.axisLeft`/`d3.axisBottom` for the axes. The `viz.js` module manages loading state and fetch, while `axes.js` and `shapeLegend.js` encapsulate reusable drawing logic.
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