Chartpack YAML

A chartpack selects which baseline or experiment results to show and how to present them. It controls the charts, their order, labels, years, axis bounds, colours and line styles. It does not change model equations, shocks or results.

Start with the illustrated chart guide: 11 examples cover all nine supported chart types, with matching YAML and sample data to download. The examples use synthetic observations, clearly separated from actual G-Cubed experiment results.

A standalone chartpack is a list written in YAML. A dash begins each main item:

- chartpack:
    format: gcubed-chartpack
    version: 1
    title: Baseline
- chart:
    series:
      - variable: INFL(USA)
      - variable: INFL(CHN)

The first item gives the report title and format version. Each later item is a section or chart. Include at least one chart. Numeric version: 1 means the original format. To use newer features, set the required version as a quoted string, such as version: "1.4.0".

Chart types

Set chart_type on a chart to choose how its data is displayed. Leave it out for the default line chart. See Choose a chart type for the supported values and illustrated examples.

Syntax and recipes

Standalone chartpacks use color. The concise chartpack declaration in setup YAML uses colour. Keep the two grammars separate.

See Charts to check which template understands each chartpack version.


Table of contents