vifactor / repostat

Inspired by gitstats project: git repository desktop analyzer
GNU General Public License v3.0
106 stars 13 forks source link

Use a better/smarter integration period for author stats #124

Closed pulkomandy closed 4 years ago

pulkomandy commented 4 years ago

Currently author stats are grouped by week. This is fine for young projects, but for older ones it doesn't work so well. In particular, the streamgraph does not look great, it tends to be a lot of short pulses which is hard to interpret anything from.

Using a month or even a quarter as the integration period would yield better results.

I don't know if the same is true for the two other graphs in author stats (lines and commits count), maybe a quarter would be too coarse there when it is fine for the streamgraph. So we may need a different integration period for the streamgraph.

vifactor commented 4 years ago

So far I am going to add a single configuration option in config file, so that a user could adjust a global sampling. Can be reopen if individual graph adjustments are needed.