Overview
The population statistics feature provides access to demographic data, nationality distributions, and population trends for the Dzaleka Refugee Camp. This information helps understand the community composition and changes over time.Population Overview
View total population and new arrivals
Demographics
Explore demographic breakdowns with visualizations
Nationalities
See nationality distribution across the camp
Trends
Track population changes over time
Getting Population Statistics
View Statistics
Retrieve current population data:- Total population count
- New arrivals
- Demographics distribution
- Nationalities breakdown
- Population trends over time
Understanding the Output
Population Overview
The overview panel shows high-level statistics:Numbers are formatted with commas for better readability.
Demographics Distribution
Demographics are displayed in a visual table format:Each █ represents approximately 2% in the visual representation.
Demographics Categories
Typical demographic categories include:Children
Children
Population under 18 years old, representing youth and school-age individuals in the camp.
Adults
Adults
Working-age population between 18 and 60 years old.
Elderly
Elderly
Population over 60 years old, requiring specialized care and services.
Other Categories
Other Categories
Additional breakdowns may include gender, family composition, or other demographic factors.
Nationalities Distribution
Nationality data shows the countries of origin:Population Trends Over Time
Historical population data visualized:Visualization Legend
A legend panel explains the visual representations:Use Cases
Analyze Demographics
Understand the age distribution to plan services:- Proportion of children (education needs)
- Working-age adults (employment opportunities)
- Elderly population (healthcare requirements)
Track Population Growth
Monitor population changes over time:- Identify growth patterns
- Compare year-over-year changes
- Plan resource allocation
Understand Community Composition
Analyze nationality distribution:- Understand cultural diversity
- Plan language services
- Organize community programs
Data Interpretation
Total Population
Total Population
The total number of registered individuals in Dzaleka Refugee Camp. This includes all age groups and nationalities.
New Arrivals
New Arrivals
Recent additions to the camp population, typically measured within the last reporting period (month or quarter).
Percentage Values
Percentage Values
All percentages represent proportion of the total population. They should sum to 100% within each category (demographics or nationalities).
Visual Bars
Visual Bars
The █ character is used to create visual representations. Longer bars indicate higher percentages or values.
Trends
Trends
Population trends show historical data, typically spanning multiple years to show growth or decline patterns.
Command Reference
population stats
Options: No options required. Output Sections:-
Population Overview Panel
- Total population (formatted with commas)
- New arrivals count
-
Demographics Distribution Table
- Category names
- Percentage values
- Visual bar representations
-
Nationalities Distribution Table
- Country names
- Percentage values
- Visual bar representations
-
Population Trends Over Time Table
- Years
- Population counts
- Scaled trend visualizations
-
Visualization Legend Panel
- Explanation of visual elements
- Scale information
- Color-coded tables (cyan, green, yellow, magenta, blue)
- Formatted numbers with thousand separators
- Terminal-friendly visualizations
- Clear panel borders using box-drawing characters
Population statistics are fetched in real-time from the Dzaleka API and reflect the most current available data.
Technical Notes
Visualization Scaling
The CLI uses intelligent scaling for visualizations:- Demographics & Nationalities: Each █ represents 2% (bar_length = percentage / 2)
- Population Trends: Bars are scaled relative to maximum value (scale_factor = 50 / max_value)
Data Source
All population data is retrieved from:total- Total population countnewArrivals- Recent arrival countdemographics- Object with category/percentage pairsnationalities- Object with country/percentage pairstrends- Object withlabels(years) andvalues(populations) arrays