fava icon indicating copy to clipboard operation
fava copied to clipboard

Add calculation and disply for average of incomes and expenses

Open vahidmah opened this issue 2 years ago • 2 comments

This feature is calculating an average for incomes and expenses. I originally developed it for my own use but then thought of sharing it. Please check this PR and let me know what you think about it.

This is a screenshot using long-example

image

vahidmah avatar May 27 '23 02:05 vahidmah

Hi, thank you for submitting the PR :) I think these averages are a useful bit of information but I find them to be a bit out of place. Since the account trees are for the whole time range and the charts show information per interval, maybe the average could be added to the chart instead (as part of the tooltip?)?

yagebu avatar Jul 30 '23 07:07 yagebu

Hi, I wasn't quite certain about where to place this information. One possible location could be the tooltip of the chart. The challenge arises from the fact that the average is calculated for the entire duration (for the year 2014 in the given example), while hovering over a specific bar only displays data relevant to that particular interval (Jan 2014, below).

image

So, the question is, does this average value truly belong in the tooltip?

Maybe, another option could be incorporating a small summary section alongside the chart, where essential statistics like the average are showcased explicitly.

vahidmah avatar Jul 31 '23 20:07 vahidmah