Open mbannert opened 6 years ago
report_title: some title
report_subtitle: some subtitle
authors: the KOF gang
date: 2018-11-01
layout: two_columns
global_tsplot_theme:
sum_as_line: TRUE
lwd:
- 1
- 2
- 3
plots:
- title: Baro
subtitle: meter
tsplot_params:
- left_as_bar: TRUE
series:
- ch.kof.barometer
- title: mpc
series:
- ch.kof.mpc
- title: survey stuff
series:
- ch.kof.inu.ng08.fx.q_ql_ass_bs.balance
- ch.kof.bau.ng08.fx.q_ql_ass_bs.balance
theme: # Augment of override global_tsplot_theme
line_colors:
- "#000000"
- "#0f892b"
window:
start: 2008
end: 2018.5
That's already higher level yaml though. Simple arrays (like the lwd
and colors
above) could also be written in the inline form ([1, 2, 3]
)
Minimal example:
report_title: stuff
plots:
- series: [ch.kof.barometer, ch.kof.barometer.ref]
- series: [ch.kof.inu.ng08.fx.q_ql_ass_bs.balance, ch.kof.bau.ng08.fx.q_ql_ass_bs.balance]
?
Anyway, I think we should aim for out-of-the-box valid yaml.
Also maybe a metadata_field_for_legend
-field per plot?
Maybe have an n_periods
additionally to / instead of window
to allow automatically shifting windows that always include the most recent (or, with another parameter the nth most recent) period.
yaml:
-> report definition can also be store to db (as json).