electricity graph dashticz confused

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
willemd
Posts: 649
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

electricity graph dashticz confused

Post by willemd »

I have a graph of today's electricity usage in dashticz. It is a stacked bar with a red line for nett usage and the total above the line should be a mirror image of the total below the line.

Today there is some empty space in the graph that disturbs the image. The empty space between 10:00 and 15:00 seems to be an echo of the realusage between 06:00 and 11:00. The data in domoticz looks normal.

If I click in the graph to remove gridusage then also the empty space disappears.

Is this a bug?

Here is the image

https://postimg.cc/Js84TgRx


below is my graph definition.

Code: Select all

blocks['graph_EL'] = {
    title: 'Electricity',
    width:12,
    devices: [1,3,22],
    graph: ['line','bar','bar','bar','bar'],
    custom: {
        "today": {
            range: 'day',
            filter: 'today',
            data: {
                gridnett: 'd.v_1+d.v2_1-d.r1_1-d.r2_1',
                gridusage: 'd.v_1+d.v2_1',
                gridreturn: '-1*(d.r1_1+d.r2_1)',
                solar: 'd.v_3',
                realusage: '-1*(d.v_3 + d.v_1 + d.v2_1 -d.r1_1 - d.r2_1)',
           },
        },
        "last month": {
            range: 'month',
            filter: '1 month',
            data: {
                gridnett: 'd.v_1+d.v2_1-d.r1_1-d.r2_1',
                gridusage: 'd.v_1+d.v2_1',
                gridreturn: '-1*(d.r1_1+d.r2_1)',
                solar: 'd.v_3',
                realusage: '-1*(d.v_3 + d.v_1 + d.v2_1 -d.r1_1 - d.r2_1)',
            },
        },
        "last 6 months": {
            range: 'year',
            filter: '6 months',
            data: {
                gridnett: 'd.v_1+d.v2_1-d.r1_1-d.r2_1',
                gridusage: 'd.v_1+d.v2_1',
                gridreturn: '-1*(d.r1_1+d.r2_1)',
                solar: 'd.v_3',
                realusage: '-1*(d.v_3 + d.v_1 + d.v2_1 -d.r1_1 - d.r2_1)',
            },
        },
    },
    stacked: true,
    legend: true
}
willemd
Posts: 649
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

Re: electricity graph dashticz confused

Post by willemd »

Looking at the same graph now (changed range today to 1 day) the empty space has gone.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest