From cf06ab236d53c2af10845c54a876f0e1ffdc731f Mon Sep 17 00:00:00 2001 From: Zichao Lin Date: Mon, 6 Jul 2026 20:35:43 +0800 Subject: [PATCH] revert(dashboard): restore Chart.js bar chart for country distribution --- app/templates/dashboard.html | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index 3022e35..a41dec7 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -60,20 +60,33 @@ {% endif %} {% if country_stats %} +

🌍 国家/地区分布

- {% set max_count = country_stats[0][1] if country_stats else 1 %} - {% for code, count in country_stats %} -
- {{ code|flag }} {{ code }} -
-
- {{ count }} -
-
-
- {% endfor %} +
+ {% endif %}