🌍 Public
Viewing a saved revision (read-only)
908bccd62a844d1aa875b7fc4e5c7168
Fork of Assignment_2_pie
This example compares population trends across countries using both a stacked area chart and a pie chart. The area chart displays population data from 1970 to 2022 across eight time periods, while the pie chart shows the 2022 population distribution. Both visualizations load CSV data via `d3.csv` and use D3’s `d3.stack`, `d3.area`, `d3.pie`, and `d3.arc` APIs. The code demonstrates rendering SVG elements with ordinal color scales and includes axis generation and legend creation.
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.