Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combined graph (line and bar) with different time offset #1070

Open
reinos opened this issue Jun 8, 2023 · 0 comments
Open

Combined graph (line and bar) with different time offset #1070

reinos opened this issue Jun 8, 2023 · 0 comments

Comments

@reinos
Copy link

reinos commented Jun 8, 2023

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 2023-06-08 at 14 09 08

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 2023-06-08 at 14 10 42

Any idea how I can accomplish this?

My config for this block is:

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']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant