header:
  title: Population
  description: Analyze the sociodemographic characteristics of the population
layout:
  key-indicators-sim:
  - type: tile
    title: ""
    height: 0.1
    dataset: analysis/population/total_agents.csv
  sex:
  - type: pie
    title: Agents per sex group | simulated
    dataset: analysis/population/amount_per_sex_group.csv
    useLastRow: true
  - type: pie
    title: Agents per sex group | reference
    dataset: analysis/resources/amount_per_sex_group-ref.csv
    useLastRow: true
  age-all:
  - type: plotly
    title: Age Distribution
    description: Population by age group.
    datasets:
      dataset:
        file: analysis/population/amount_per_age_group.csv
        constant:
          source: sim
      populationageallref:
        file: analysis/resources/population_age_all_ref.csv
        constant:
          source: ref
    traces:
    - x: $dataset.Age
      "y": $dataset.n
      orientation: v
      type: bar
      name: $dataset.source
    width: 2.0
    mergeDatasets: true
    multiIndex:
      Age: source
  age-men:
  - type: plotly
    title: Age Distribution for Men
    description: Sim data scaled up 100%
    datasets:
      dataset:
        file: analysis/population/amount_per_age_group_men.csv
        constant:
          source: sim
      populationagemenref:
        file: analysis/resources/population_age_men_ref.csv
        constant:
          source: ref
    traces:
    - x: $dataset.Age
      "y": $dataset.n
      orientation: v
      type: bar
      name: $dataset.source
    width: 2.0
    mergeDatasets: true
    multiIndex:
      Age: source
  age-women:
  - type: plotly
    title: Age Distribution for Women
    description: Sim data scaled up 100%
    datasets:
      dataset:
        file: analysis/population/amount_per_age_group_women.csv
        constant:
          source: sim
      populationagewomenref:
        file: analysis/resources/population_age_women_ref.csv
        constant:
          source: ref
    traces:
    - x: $dataset.Age
      "y": $dataset.n
      orientation: v
      type: bar
      name: $dataset.source
    width: 2.0
    mergeDatasets: true
    multiIndex:
      Age: source
