Assignment_2
✓ Published0🌍 Public
This example presents two synchronized views of historical population data for multiple countries: a stacked area chart and a pie chart. The area chart uses `d3.stack()` and `d3.area()` to show population changes across eight census years, while the pie chart uses `d3.pie()` and `d3.arc()` to display the 2022 population distribution. Both visualizations load data from a CSV file via `d3.csv`, employ `d3.scaleOrdinal` with `d3.schemeCategory10` for coloring, and render as SVG. Numeric population values are displayed directly on the area chart layers.
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