From 2afb535fe234a0eaf200ef34a8cfe0da85c8a35d Mon Sep 17 00:00:00 2001 From: gregor herrmann Date: Tue, 18 Dec 2018 18:23:47 +0100 Subject: [PATCH] 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. --- web/static/seepark_web.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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({ -- 2.47.3