Generate informational graphs from ledger-cli accounting files.
Generate a directed graph (in GraphViz markup) of how money moves within the file.
May not work with multiple commodities, fixes are welcome.
Designed to be easily extendable with queries interesting to yourself.
- At least ledger 3
- The files
script.gnuplotfrom this repository
Create a directory
./report <ledger file> [periods <period expressions>]
If no ledger file is specified,
main.ledger is assumed.
The resulting graphs will be placed in the reports/ directory.
The script uses the following categories in the current state
The periodic feature is experimental and might not work exactly as expected.
Reporting periods must be exactly equal-width buckets, meaning that the query result must have the exact same number of lines.
This also includes things such as dates without a transaction (a problem
which may be sidestepped by using
--empty) and leap years,
--daily probably a bad window.
--weekly --empty is probably a good
The periodic report will create the same type of graphs from the same queries as the regular report, but will try to plot the data for every period as its own line.
Data which can not reliably be segmented into equal-width
periods should be plotted with the
which always produce the same plot.
./report main.ledger periods 2015 2016