diff options
Diffstat (limited to 'web/templates.templ')
| -rw-r--r-- | web/templates.templ | 3 |
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) |
