sensordata now left to right

This commit is contained in:
Senad Uka
2017-06-04 16:02:26 +02:00
parent f6e9d79e4b
commit 620c69d1a0

View File

@@ -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");