From 1a77daff43c354ef11bcc552fd33a3abbe0d8f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Sun, 12 Jul 2026 01:14:20 +0200 Subject: [PATCH] stats: show downloads chart per-week instead of per-day The bottom subplot of downloads.png reads better as a weekly rate. Since the ActivityWatch/stats analyze_stats.py smoothing fix, --per-day and --per-week both render a 7d-rolling-smoothed line; --per-week restores the weekly magnitude the chart showed before the recent stats refactor. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c98eb196..c9ffc678 100644 --- a/Makefile +++ b/Makefile @@ -63,7 +63,7 @@ img/stats: stats cd stats && poetry install mkdir -p img/stats mkdir -p stats/out - cd stats && poetry run python analyze_stats.py --since 2017-07-01 --column downloads --per-day --save ../img/stats/downloads.png + cd stats && poetry run python analyze_stats.py --since 2017-07-01 --column downloads --per-week --save ../img/stats/downloads.png cd stats && poetry run python analyze_stats.py --since 2017-07-01 --column 'Chrome WAU' --title 'Chrome Weekly Active Users' --save ../img/stats/chrome-wau.png cd stats && poetry run python analyze_stats.py --since 2017-07-01 --column 'Firefox DAU' --resample 7D --title 'Firefox Daily Active Users (7D mean)' --save ../img/stats/firefox-dau-7d.png cd stats && poetry run python analyze_stats.py --since 2017-07-01 --column 'Android installed devices' --title 'Android Installed Devices' --save ../img/stats/android-devices.png