Graph combined behavior Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
michelscholte
Posts: 75
Joined: Friday 08 January 2016 10:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Nederland
Contact:

Graph combined behavior

Post 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?
Attachments
tempsnip.png
tempsnip.png (99.13 KiB) Viewed 452 times
Knipsel2.JPG
Knipsel2.JPG (21.09 KiB) Viewed 452 times
michelscholte
Posts: 75
Joined: Friday 08 January 2016 10:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Nederland
Contact:

Re: Graph combined behavior

Post 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',
}
},
michelscholte
Posts: 75
Joined: Friday 08 January 2016 10:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Nederland
Contact:

Re: Graph combined behavior

Post 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.
Attachments
Knipsel3.JPG
Knipsel3.JPG (54.61 KiB) Viewed 435 times
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Graph combined behavior

Post 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?
michelscholte
Posts: 75
Joined: Friday 08 January 2016 10:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Nederland
Contact:

Re: Graph combined behavior

Post 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?
Attachments
1.JPG
1.JPG (34.03 KiB) Viewed 410 times
2.JPG
2.JPG (39.48 KiB) Viewed 410 times
3.JPG
3.JPG (39.57 KiB) Viewed 410 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest