aboutsummaryrefslogtreecommitdiff
path: root/web/templates.templ
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-08-21 19:07:31 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-08-21 19:07:31 +0200
commitb3a83b2fdd5b406d020398e7c3cf6f46149a2523 (patch)
tree7086ae3602e219f7478dcaeca66c0e54e337c1f3 /web/templates.templ
parent1e63f5c91f0e5ff7dfc582b67d262d5939cc34bc (diff)
Add global analytics scatter chart
Diffstat (limited to 'web/templates.templ')
-rw-r--r--web/templates.templ3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/templates.templ b/web/templates.templ
index 1cda7f2..0bfef9c 100644
--- a/web/templates.templ
+++ b/web/templates.templ
@@ -130,7 +130,8 @@ templ AnalyticsContent(data AnalyticsPageData) {
if len(data.Points) == 0 {
<div class="empty">No eligible rides yet. <a href="/sync">Import rides to see the chart.</a></div>
} else {
- <div class="analytics-chart"><canvas id="analytics-chart" role="img" aria-label="Scatter plot of ride average speed against Cotacol per 100 km"></canvas></div>
+ <div class="analytics-chart"><canvas id="analytics-chart" tabindex="0" role="img" aria-label="Scatter plot of ride average speed against Cotacol per 100 km"></canvas></div>
+ <output id="analytics-hover" class="analytics-hover" aria-live="polite">Hover a point to inspect a ride.</output>
}
</section>
@templ.JSONScript("analytics-points", data.Points)