Combined graph (line and bar) with different time offset

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
reinos
Posts: 5
Joined: Tuesday 02 June 2020 21:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Combined graph (line and bar) with different time offset

Post by reinos »

Hi there,

What I want to accomplish, is the same graph domoticz has: a graph with both the current (interval 5 min) and the hour total for my solar device. (screenshot 1)

What I currently have is a bar and a line chart, but grouped per hour. I cannot see how I can make the line chart grouped per 5 min. (screenshot 2)

Any idea how I can accomplish this?

My config for this block is:

Code: Select all

blocks['solar_211'] = {
    interval: 5,
    title: 'Solar',
    width: 12,
    devices: [211],
    graph: ['line','bar'],
    lineTension: 0.4,
    format: true,
    custom : {
        "last day": {
            range: 'day',
            filter: '24 hours',
            groupBy: 'hour',
            data: {
                current: 'd.v_211',
                generation: 'd.eu_211'
            }
        },
        "last 2 weeks": {
            range: 'month',
            filter: '14 days',
            data: {
                current: 'd.v_211',
                generation: 'd.eu_211'
            }
        },
        "last 6 months": {
            range: 'year',
            filter: '6 months',
            data: {
                current: 'd.v_211',
                generation: 'd.eu_211'
            }
        }
    },
    legend: true,
    datasetColors:['blue','yellow']
}
Attachments
244377018-2bd07ae8-066d-4a0e-a6d4-2464d8b5c4e5.png
244377018-2bd07ae8-066d-4a0e-a6d4-2464d8b5c4e5.png (367.08 KiB) Viewed 487 times
244377374-40f734c1-2227-4991-aadd-63c3751e8a70.png
244377374-40f734c1-2227-4991-aadd-63c3751e8a70.png (67.48 KiB) Viewed 488 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest