Chart years and axis bounds
Year and Y-axis settings can be placed in chartpack defaults, a section or a chart.
Limit one chart
- chart:
title: Near-term real GDP
start_year: 2025
end_year: 2035
y_axis:
min: -5
max: 10
series:
- variable: GDPR(USA)
Both years must exist in the projections and end_year must not precede start_year. Bounds must be finite, with max no lower than min.
Override one inherited bound
- section:
start_year: 2025
end_year: 2050
y_axis:
min: -10
max: 10
- chart:
y_axis:
max: 25
series:
- variable: GDPR(USA)
This chart keeps the section’s min: -10 and uses its own max: 25. Omit an automatic bound; do not set it to null.
G-Cubed