mirror of
https://github.com/bobwen-dev/cockpit-temperature-plugin
synced 2025-04-11 22:56:08 +02:00
Update temperature.js
This commit is contained in:
parent
5d157e2d6d
commit
bd350a82aa
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user