https://github.com/alessandrow/hledger-sankey-visualization
A HLedger Sankey visualization of your incomestatement using amCharts4.
https://github.com/alessandrow/hledger-sankey-visualization
amcharts hledger sankey-diagram
Last synced: 6 months ago
JSON representation
A HLedger Sankey visualization of your incomestatement using amCharts4.
- Host: GitHub
- URL: https://github.com/alessandrow/hledger-sankey-visualization
- Owner: AlessandroW
- License: mit
- Created: 2021-09-19T16:13:48.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-22T11:00:03.000Z (about 4 years ago)
- Last Synced: 2025-04-18T17:32:02.060Z (6 months ago)
- Topics: amcharts, hledger, sankey-diagram
- Language: JavaScript
- Homepage:
- Size: 139 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HLedger Sankey
A HLedger Sankey visualization of your incomestatement using amCharts4.
## Example
Export the `example.journal` with:
``` sh
$ 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.
``` sh
$ hledger incomestatement --cost --tree --sort-amount --output-format json > journal.json
```
2. Open the `index.html` in your browser.
3. Click `Browse` and select your exported JSON file.## Handy Export Functions
- From .. To Export``` sh
$ hledger incomestatement --cost --tree --sort-amount --output-format json -b 2021/04/01 -e 2021/06/30 > 2021-Q2.json
```
-