diff --git a/freezing/web/templates/explore/distance_by_lowtemp.html b/freezing/web/templates/explore/distance_by_lowtemp.html index 5a130db4..a9b7cb3f 100644 --- a/freezing/web/templates/explore/distance_by_lowtemp.html +++ b/freezing/web/templates/explore/distance_by_lowtemp.html @@ -62,6 +62,12 @@ format: (d) => d + '°F' } } + }, + tooltip: { + format: { + value: (value, ratio, id) => + Math.round(value) + (id === 'distance' ? ' mi' : '°F') + } } }); }, @@ -72,6 +78,18 @@ requestData(); }); + {% endblock %} {% block content %} @@ -82,7 +100,7 @@ Relationship between total number of miles logged riders and the average low daily temperatures. {# djlint:off H021 #} -
+
{# djlint:on #}
{% endblock %}