Net worth report

I spent some time figuring out how to generate Gnuplot graphs from the financial records I’ve been keeping with Ledger. Here’s what I came up with:

Net worth graph

To generate this graph, I pieced together the following reports:

ledger -M -C -R -n -J reg ^assets ^liab > net-worth
ledger -t -a -M -C -R -n -j reg ^Income > income
ledger -M -C -R -n -j reg ^Expenses > expenses

… and plotted it with Gnuplot:

  • set xdata time
  • plot “expenses” using 1:2 title “Expenses” with lines, “income” using 1:2 title “Income” with lines, “net-worth” using 1:2 title “Net Worth” with lines, 0 with lines

… and fiddled around with the plot, and that was that!

Random Emacs symbol: gnus-gethash-safe – Macro: Get hash value of STRING in HASHTABLE.