Page 1 of 1
Graph combined behavior
Posted: Wednesday 28 September 2022 12:50
by michelscholte
I've have a strange behavior with my graph. I've combined my P1-meter sensor and my solaredge modbus sensor in one graph. When I select (tooltip) the graph, it combines data of the solaredge sensor with the data of the p1 meter from the day before. See attachment.
Anyone any ideas?
Re: Graph combined behavior
Posted: Wednesday 28 September 2022 13:28
by michelscholte
This is what I have defined in my config.js:
blocks['verbruik'] = {
title: 'Verbruik',
devices: [2977,2980,3046,3079],
height: '340px',
graph: 'bar',
axisRight: false,
width: 12,
barWidth: 1,
//zoom: 'x',
debugButton: true,
buttonsBorder: 'Gray',
buttonsColor: 'Black',
buttonsFill: 'DarkGrey',
buttonsIcon: 'LightBlue',
buttonsPadX: 5,
buttonsPadY: 5,
buttonsMarginX: 5,
buttonsMarginY: 2,
buttonsRadius: 5,
buttonsSize: 10,
buttonsShadow: 'rgba(200, 117, 216, 0.2)',
customHeader: {
2977: '"Totaal vandaag: Elektra: "+data.split(",").slice(0,2)',
2980: '"Gas: "+data.split(",").slice(0,2)',
3046: '"Water: "+data.split(",").slice(0,2)',
},
custom : {
"Elektra Dag": {
range: 'day',
filter: '24 hours',
//groupBy: 'hour',
graph: 'line',
buttonIcon: 'fas fa-plug',
ylabels: ['Elektra Dag (kWh)'],
legend: true,
datasetColors: ['Yellow','Blue','Red','White'],
data: {
'verbruik bruto': 'd.v2_2977+d.v_2977',
levering: 'd.r1_2977+d.r2_2977',
'verbruik netto': 'd.v_3079-(d.r1_2977+d.r2_2977)+(d.v2_2977+d.v_2977)',
opwekking: 'd.v_3079',
}
},
Re: Graph combined behavior
Posted: Thursday 29 September 2022 9:30
by michelscholte
Solved.
Since not all the data from the entire week was complete yesterday (22 sep was not filled in), it is very likely that this is why the problem occurred.
As you can see, my graph is now working as expected. It combines all sensors from the same day.
Re: Graph combined behavior
Posted: Friday 30 September 2022 8:44
by Lokonli
michelscholte wrote: Thursday 29 September 2022 9:30
Solved.
Since not all the data from the entire week was complete yesterday (22 sep was not filled in), it is very likely that this is why the problem occurred.
As you can see, my graph is now working as expected. It combines all sensors from the same day.
Nice. Just curious: Do you know why you have black bars?
Re: Graph combined behavior
Posted: Friday 30 September 2022 9:13
by michelscholte
Its only the first click on the graph and no tooltip is showing. After the second click on the graph I see the the tooltip with a graph with black bars. Then when I click on the tooltips popup, the bars are in color. I don't know why?