From 620c69d1a017f69ed542a132cd88012f68511ede Mon Sep 17 00:00:00 2001 From: Senad Uka Date: Sun, 4 Jun 2017 16:02:26 +0200 Subject: [PATCH] sensordata now left to right --- app/client/log.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/client/log.js b/app/client/log.js index 74f7b6d..176f481 100644 --- a/app/client/log.js +++ b/app/client/log.js @@ -4,7 +4,7 @@ function sensor_data_collection() { controllerId: controllerId }, { sort: { - created_at: -1 + created_at: 1 }, limit: 100 }); @@ -53,6 +53,7 @@ var createChart = function() { var heightOfElementsBefore = chartCanvas.getBoundingClientRect().top; chartCanvas.height = window.innerHeight - heightOfElementsBefore; var ctx = chartCanvas.getContext("2d"); +