]> ToastFreeware Gitweb - chrisu/seepark.git/blobdiff - web/static/seepark_web.js
fix indentation. or actually logic: mode handling after the sql query
[chrisu/seepark.git] / web / static / seepark_web.js
index 0bda80064e8391adc56a63a268d61ae0c9e991cb..904810a0cb536c1e904825f9e77e2b614f4cd39d 100644 (file)
@@ -17,7 +17,11 @@ var chart = c3.generate({
                        '0316a2193bff': 'Wassertemperatur in 4 m Tiefe',
                        '0316a21383ff': 'Wassertemperatur in 5 m Tiefe'
                },
                        '0316a2193bff': 'Wassertemperatur in 4 m Tiefe',
                        '0316a21383ff': 'Wassertemperatur in 5 m Tiefe'
                },
-               xFormat: '%Y-%m-%d %H:%M:%S'
+               xFormat: '%Y-%m-%d %H:%M:%S',
+               colors: {
+                       '0316a2193bff': 'lightblue',
+                       '0316a21383ff': 'darkblue'
+               }
        },
        axis: {
                x: {
        },
        axis: {
                x: {
@@ -64,7 +68,7 @@ var chart = c3.generate({
                                return res;
                        },
                        value: function (value, ratio, id, index) {
                                return res;
                        },
                        value: function (value, ratio, id, index) {
-                               return value + '°';
+                               return value.toFixed(2) + '°';
                        }
                }
        },
                        }
                }
        },