fava
fava copied to clipboard
Add ability to select treemap (Income/Expense/...) in trial balance using url query parameter
I'd like to be able to link to a treemap of a certain Expenses account. Now I can create a url like this:
http://localhost:5000/beancount/trial_balance/?account=Expenses%3AFood
However, this defaults to the "Income" treemap, which is empty in this case.
Would it be possible to add a url query parameter to select which treemap to show? For example:
http://localhost:5000/beancount/trial_balance/?account=Expenses%3AFood&treemap=Expenses
This would solve my immediate problem. I am using fava 1.29.
I guess we could track the currently selected chart in the URL hash which would enable linking to it. Not a priority item for me, a PR would be welcome.