Page 1 of 1

electricity graph dashticz confused

Posted: Thursday 15 December 2022 20:37
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
}

Re: electricity graph dashticz confused

Posted: Friday 16 December 2022 8:59
by willemd
Looking at the same graph now (changed range today to 1 day) the empty space has gone.