Re: Dashticz v3.7.4 beta
Posted: Wednesday 24 February 2021 23:21
@pvlink This is my electricity graph for dal- and normaalverbruik. Maybe you can use it with your own electricity block. Change 274 to your own IDX and add popup: 'graph_stroom_verbruik' to your electricity block.
Code: Select all
blocks['graph_stroom_verbruik'] = {
title: 'Stroom',
devices: [274],
graphTypes: ['v','v2'],
stacked: true,
tooltiptotal: true,
graph: ['bar','bar'],
datasetColors: ['#0A4033','#7EC389'],
// beginAtZero: true,
range:'per maand',
custom : {
"per dag": {
range: 'month',
groupBy: 'day',
aggregate: 'sum',
data: {
Dalverbruik: 'd.v_274',
Normaalverbruik: 'd.v2_274',
}
},
"per maand": {
range: 'year',
groupBy: 'month',
aggregate: 'sum',
data: {
Dalverbruik: 'd.v_274',
Normaalverbruik: 'd.v2_274',
}
}
},
legend: true,
buttonsSize: 12,
width: 12,
// debugButton: true
}