Chartpacks generated by setup

The concise chartpack block in setup.yaml is not a standalone chartpack. Setup resolves model-aware selectors and writes chartpack.yaml.

Setup support depends on the installed G-Cubed package, separately from the HTML template. See template and package compatibility. The reviewed package supports all nine chart families, including their 1.4 controls. Select version: "1.4.0" explicitly when using these features; omitting it retains numeric 1. Selecting a newer template alone does not extend an older package’s setup validation. See the setup recipes for regional snapshots and deviation heatmaps, and the complete standalone examples for every family.

Generate one chartpack

chartpack:
  title: Policy experiment
  version: "1.4.0"
  first_result_year: 2025
  last_result_year: 2050
  table_of_contents: true
  sector_selection_dimensions: [sectors]
  sector_selection_include_default: false
  charts:
    - section: Macroeconomic outcomes
      title: Inflation
      series:
        - variable_prefix: INFL
          selectors:
            - dimension: regions
              members: [USA, CHN]

Generate several chartpacks

chartpacks:
  - file_name: chartpack.yaml
    title: Main results
    derivations: [GDPRGROWTH]
    charts:
      - variable_prefix: GDPRGROWTH
        selectors:
          - dimension: regions
            members: all
  - file_name: interest_rates.yaml
    title: Interest rates
    charts:
      - variable: INTR(USA)

Exactly one of chartpack and chartpacks is allowed. In plural form every entry needs a unique file_name.

Style a setup series

Setup uses British spelling:

series:
  - variable: INTR(USA)
    label: USA real interest rate
    style:
      colour: "#2455a4"
      line: dash

The generated standalone file uses color. See the full setup chartpack recipes.

Generate a series-delta chart

Use the explicit form with a series list when the chart needs a section, chart type or chart-level endpoints:

chartpack:
  title: Policy experiment
  version: "1.4.0"
  first_result_year: 2025
  last_result_year: 2050
  table_of_contents: true
  charts:
    - section: Changes over time
      title: Change in inflation
      chart_type: series-delta
      start_year: 2025
      end_year: 2040
      series:
        - variable: INFL(USA)
        - variable: INFL(CHN)
          start_year: 2030
          end_year: 2045

A series-level endpoint replaces the corresponding chart-level endpoint. If max_series_per_chart splits an explicit chart, setup emits its section immediately before the first generated slice. The shorthand chart form is a single series declaration, so it cannot carry section or chart_type.