andreasgerstmayr / fava-dashboards

Custom Dashboards for Beancount in Fava
MIT License
169 stars 19 forks source link

Historical net worth allocation #26

Closed AlphaJack closed 6 months ago

AlphaJack commented 10 months ago

Hi, I would like to suggest an historical net worth allocation chart, but I am not sure how to implement it.

We already have an historical income and expense stacked bar chart, image

and I think it could be repurposed for assets and liabilities.

image

For the latter I had to take snapshots of the amounts in the "Assets Allocation" chart at 31st December of 2021, 2022 and 2023. I then used a csv file, pandas and matplotlib to group and plot the values.

I like your implementation of the stacked bar chart, as liabilities could appear as a second stack for each period. I know you grouped income and expenses by year and month, but I guess this cannot be done so easily for assets and liabilities.

Can we have such a chart?

andreasgerstmayr commented 9 months ago

I like the idea. It's basically the inner circle of the "Asset Classes" chart, grouped by year. It shouldn't be too difficult to implement, afaics we can use the query and asset classification code from the "Asset Classes" chart and group by year (or year and month? but I guess grouping by year only makes more sense).