Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 966 Bytes

README.md

File metadata and controls

27 lines (23 loc) · 966 Bytes

HLedger Sankey

A HLedger Sankey visualization of your incomestatement using amCharts4. screenshot

Example

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.

Getting Started

  1. Export the income statement of your journal.
$ hledger incomestatement --cost --tree --sort-amount --output-format json > journal.json
  1. Open the index.html in your browser.
  2. Click Browse and select your exported JSON file.

Handy Export Functions

  • From .. To Export
$ hledger incomestatement --cost --tree --sort-amount --output-format json -b 2021/04/01 -e 2021/06/30 > 2021-Q2.json