Chart labels, styles and units
Chart titles and exact-series labels are optional when model metadata provides a clear description.
Label and style exact lines
- chart:
title: Inflation targets
series:
- variable: INFX(USA)
label: USA
style:
color: blue
line: solid
- variable: INFX(CHN)
label: China
style:
color: "#d62728"
line: dot
Always quote a hexadecimal colour beginning with #, otherwise YAML treats it as a comment. Supported lines are solid, dot, dash, longdash, dashdot and longdashdot.
Standalone chartpack YAML uses the literal key color. Setup YAML uses colour in its concise chart declaration.
Keep units compatible
Every resolved series in a chart must have the same units. Do not put a level index and a percentage-point deviation on the same axis. Use separate charts:
- chart:
title: Inflation
series:
- variable: INFL(USA)
- chart:
title: Real GDP
series:
- variable: GDPR(USA)
G-Cubed