From: gregor herrmann Date: Tue, 18 Dec 2018 17:23:47 +0000 (+0100) Subject: change chart type for air temperature to 'spline' X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/commitdiff_plain/2afb535fe234a0eaf200ef34a8cfe0da85c8a35d change chart type for air temperature to 'spline' this smoothes out the sometimes rather erratic values. for water temperature, keep the default 'line', here 'spline' doesn't give any benefits. --- diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index 5aaf55a..da663a2 100644 --- a/web/static/seepark_web.js +++ b/web/static/seepark_web.js @@ -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({