*** WIP WIP *** All charts work (mostly)

This commit is contained in:
rxf
2023-03-31 17:38:26 +02:00
parent 126acfeb7f
commit aeeb660823
4 changed files with 333 additions and 58 deletions
+3 -4
View File
@@ -1,6 +1,7 @@
// Utility routine for plotting the data
export const colors = {'eq': '#0000FF', 'max': '#FF0000', 'min': '#008000', 'peaks': '#DAA520'};
export const noise_ymin = 30;
export function createGlobObtions() {
// Options, die für alle Plots identisch sind
@@ -31,13 +32,11 @@ export function createGlobObtions() {
}
},
title: {
// text: 'Feinstaub über 1 Tag',
align: 'left',
style: {'fontSize': '25px'},
useHTML: true,
},
subtitle: {
// text: 'Gemessene Werte und ' + avgTime + 'min-gleitende Mittelwerte',
align: 'left',
},
tooltip: {
@@ -85,7 +84,7 @@ export function createGlobObtions() {
}
export function calcWeekends(data, isyear) {
let weekend = [];
/* let weekend = [];
let oldDay = 8;
for (let i = 0; i < data.length; i++) {
let mom = moment(data[i].date);
@@ -114,7 +113,7 @@ export function calcWeekends(data, isyear) {
}
}
return weekend;
}
*/}
export function calcDays(data, isyear) {
let days = [];