Assignment_2
✓ Published1🌍 Public
This example combines a stacked area chart of country population changes across eight census years and a pie chart of fictional product sales. The area chart uses `d3.stack`, `d3.scaleBand`, and `d3.area` to layer annual population data by country, with axis labels and per-layer value text rendered via SVG. The pie chart applies `d3.pie` and `d3.arc` to sales quantities, adding a legend with color-coded rects and labels. Both visualizations load CSV data asynchronously and render using SVG elements.
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