Update temperature.js

This commit is contained in:
MRsagi 2019-08-15 17:21:03 +03:00 committed by GitHub
parent 5d157e2d6d
commit bd350a82aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
window.onload = function () {
resize_canvas()
var chart = new SmoothieChart({, millisPerPixel: 200, maxValueScale: 1.1, minValueScale: 1.1, scaleSmoothing: 0.1, grid: { fillStyle: '#ffffff', millisPerLine: 5000, verticalSections: 8 }, labels: { fillStyle: '#0000ff', fontSize: 18, precision: 1 }, timestampFormatter: SmoothieChart.timeFormatter }),
var chart = new SmoothieChart({millisPerPixel: 200, maxValueScale: 1.1, minValueScale: 1.1, scaleSmoothing: 0.1, grid: { fillStyle: '#ffffff', millisPerLine: 5000, verticalSections: 8 }, labels: { fillStyle: '#0000ff', fontSize: 18, precision: 1 }, timestampFormatter: SmoothieChart.timeFormatter }),
canvas = document.getElementById('smoothie-chart'),
series = new TimeSeries();
average_array = []
@ -39,4 +39,4 @@ function average(array) {
sum = sum + array[i];
}
return sum / count;
}
}