From: gregor herrmann Date: Wed, 13 Jun 2018 17:14:06 +0000 (+0200) Subject: seepark_web.js: print temperature in y axis with 1 decimal place X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/commitdiff_plain/60cc6b801bda3e383d3f56b9e4d42bc99e835819 seepark_web.js: print temperature in y axis with 1 decimal place otherwise we hav 21, 21.5, 22, 22.5 ... --- diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index 025aefa..1af2da3 100644 --- a/web/static/seepark_web.js +++ b/web/static/seepark_web.js @@ -43,7 +43,7 @@ var chart = c3.generate({ }, tick: { format: function (d) { - return d + '°'; + return d.toFixed(1) + '°'; } } }