I have a simple graph for my P1 meter.
All works fine, but the week view shows the same value as my day value.
I would assume that for the week view, all the values of the 7 days will be added up?
Also the month and year does the same.
What am i doing wrong?
Code: Select all
//Stroom
blocks['graph_496'] = {
title: 'Stroom verbruik',
devices: [496],
graph: ['bar','bar'],
spanGaps: true,
beginAtZero: [false, false],
toolTipStyle: true,
stacked: true,
zoom: 'xy',
custom : {
"afgelopen 24 uur": {
range: 'last',
groupBy: 'hour',
filter: '24 hours',
data: {
laag: 'd.v_496',
hoog: 'd.v2_496',
}
},
"per dag": {
range: 'month',
groupBy: 'day',
filter: '14 days',
data: {
laag: 'd.v_496',
hoog: 'd.v2_496',
}
},
"per week": {
range: 'month',
groupBy: 'week',
filter: '8 weeks',
data: {
laag: 'd.v_496',
hoog: 'd.v2_496',
}
},
"per maand": {
range: 'year',
groupBy: 'month',
filter: '12 months',
data: {
laag: 'd.v_496',
hoog: 'd.v2_496',
}
},
"per jaar": {
range: 'year',
groupBy: 'year',
filter: '1 year',
data: {
laag: 'd.v_496',
hoog: 'd.v2_496',
}
}
},
legend: true,
datasetColors:['blue','red']
}