seepark_web.js: print temperature in y axis with 1 decimal place
authorgregor herrmann <gregor@toastfreeware.priv.at>
Wed, 13 Jun 2018 17:14:06 +0000 (19:14 +0200)
committergregor herrmann <gregor@toastfreeware.priv.at>
Wed, 13 Jun 2018 17:14:06 +0000 (19:14 +0200)
otherwise we hav 21, 21.5, 22, 22.5 ...

web/static/seepark_web.js

index 025aefa..1af2da3 100644 (file)
@@ -43,7 +43,7 @@ var chart = c3.generate({
                        },
                        tick: {
                                format: function (d) {
-                                       return d + '°';
+                                       return d.toFixed(1) + '°';
                                }
                        }
                }