3 ms·
i haven't used gnuplot before, what's your setup for getting these? a monthly-cumulative plot is exactly what i'm missing from hledger-web.
by uryga 6y ago
i haven't used gnuplot before, what's your setup for getting these? a monthly-cumulative plot is exactly what i'm missing from hledger-web.
- gen220 6y agoI’d never used it before using it for ledger, either! It’s kind of tricky. I have an AWK script that reads a ledger report to compute the X and Y-value pairs. These are written to a temp file that is read by GNUPlot. It’s a bit of work to get setup, but I’m able to copy paste the idea around my reports. I’ve also found the GNUPlot manual to be very easy to read! I’m away from my laptop now, but I’ll add a gist tomorrow.
- gen220 6y agoHere's the pastebin for those interested. (it's three files). It probably would have been better done in python (I probably wouldn't have needed the zero-inserting hack), but it works pretty well. https://pastebin.com/mxXDqqTK https://pastebin.com/mxXDqqTK
- smichael 6y agoYou can use command-line hledger to produce the appropriate balance report data as CSV, suitable for gnuplot (or drag into a spreadsheet and use the charting tools there).