Activity 7.1 question 2
✓ Published0🌍 Public
This example visualizes the distribution of petal length across iris species using a stacked area chart. It loads CSV data from a GitHub gist via D3’s `csv` method, then applies `scaleBand` for species categories and `scaleLinear` for petal length values. The chart uses `stack` and `area` generators to render a single filled area, with `axisBottom` and `axisLeft` for axes, and a title annotation. SVG output is produced through D3 selections.
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