After update to latest beta some graphs went empty

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
marcoon66
Posts: 5
Joined: Tuesday 21 December 2021 20:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

After update to latest beta some graphs went empty

Post by marcoon66 »

Hi,

(first of all: what a splendid add on to domoticz!).

I updated this weekend from version 3.8.5 to 3.8.8.
The graphs containing one data line gone empty.

for example my 'gas'-graph doesn't work, my electricity graph works well:

Code: Select all

blocks[grafiek_gas] = {
        title: 'Gas op de plank',
        devices: [78],
        graph: 'bar',
        custom: {
                "afgelopen maand": {
                        range: 'month',
                        filter: '28 days',
                        data: {gas: 'd.v_78'}
                        },
                "afgelopen dag": {
                        range: 'day',
                        filter: '1 day',
                        data: {gas: 'd.v_78'}
                        },
                "afgelopen week": {
                        range: 'month',
                        filter: '7 days',
                        data: {gas: 'd.v_78'}
                        }
                },
        graphTypes: ['v'],
        datasetColors: ['red'],
        legend: {
                v_78: "Gas verbruik"
        }
}

blocks[grafiek_electriciteit] = {
        title: 'Mijn electriciteit',
        devices: [77],
        graph: ['line','bar','bar'],
        custom : {
                "Afgelopen 2 weken": {
                        range: 'month',
                        filter: '14 days',
                        data: {
                                nett: 'd.v_77+d.v2_77-d.r1_77-d.r2_77',
                                usage: 'd.v_77+d.v2_77',
                                generation: '-d.r1_77-d.r2_77'
                        }
                }, etc. etc.

When I click on the 3 bars and go to the data I don't see any óutput keys'. Maybe thats the problem?

Can somebody help me out?

Thanks,
Marco
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: After update to latest beta some graphs went empty

Post by Lokonli »

You have to remove the legend.

Explanation:
With custom graphs you replace the original data elements. That means the keys in your legend don't exist anymore, and nothing will be shown.

Maybe the legend should be ignored for custom graphs, because it's confusing I notice.

Verstuurd vanaf mijn AC2003 met Tapatalk

marcoon66
Posts: 5
Joined: Tuesday 21 December 2021 20:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: After update to latest beta some graphs went empty

Post by marcoon66 »

Thanks. This was the trick.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest