A HLedger Sankey visualization of your incomestatement using amCharts4.
Export the example.journal
with:
$ hledger -f example.journal incomestatement --cost --tree --sort-amount --output-format json > example.json
The result is the example.json
file in this repository.
Open the index.html
and load the example.json
to reproduce the above Sankey diagram.
- Export the income statement of your journal.
$ hledger incomestatement --cost --tree --sort-amount --output-format json > journal.json
- Open the
index.html
in your browser. - Click
Browse
and select your exported JSON file.
- From .. To Export
$ hledger incomestatement --cost --tree --sort-amount --output-format json -b 2021/04/01 -e 2021/06/30 > 2021-Q2.json