change chart type for air temperature to 'spline'
authorgregor herrmann <gregor@toastfreeware.priv.at>
Tue, 18 Dec 2018 17:23:47 +0000 (18:23 +0100)
committergregor herrmann <gregor@toastfreeware.priv.at>
Tue, 18 Dec 2018 17:23:47 +0000 (18:23 +0100)
this smoothes out the sometimes rather erratic values.

for water temperature, keep the default 'line', here 'spline' doesn't give
any benefits.

web/static/seepark_web.js

index 5aaf55a..da663a2 100644 (file)
@@ -30,6 +30,7 @@ function dayschart(element, title, days, xtickformat) {
                                        '0416a1bab9ff': 'mediumblue',
                                        '0316a2193bff': 'midnightblue'
                                },
+                               type: 'line', // default
                                /*
                                xSort: false,
                                order: function (a, b) {
@@ -55,7 +56,8 @@ function dayschart(element, title, days, xtickformat) {
                                xFormat: '%Y-%m-%d %H:%M:%S',
                                colors: {
                                        '3319578': 'red'
-                               }
+                               },
+                               type: 'spline',
                };
        };
        var chart = c3.generate({