Two graphTypes on the same y-axis

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
JakeOfOz
Posts: 9
Joined: Wednesday 31 March 2021 10:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Two graphTypes on the same y-axis

Post by JakeOfOz »

Hi,
I use dashticz to display my power data, but one of the things I really like in the Domoticz view, is the graph of usage and return (totals) for the day. I tried to replicate it in Dashticz with

Code: Select all

blocks['p1-meter'] = {
        devices: ['1'],
        width: 12,
        height: '300px',
        graph: ['line','line'],
        graphTypes: ['eu','eg'],
        lineFill: true,
        borderColors: ['rgba(83, 51, 198, 1)','rgba(50, 180, 100, 1)'],
}
This is almost correct, except for the fact that both graphs use a different Y-axis. I want them to use just one. I've tried for hours now, but can't figure it out... Is there an easy way to fix this?
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Two graphTypes on the same y-axis

Post by Lokonli »

Will be fixed within a few days

Verstuurd vanaf mijn AC2003 met Tapatalk

Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Two graphTypes on the same y-axis

Post by Lokonli »

JakeOfOz wrote: Sunday 17 October 2021 22:23 Hi,
I use dashticz to display my power data, but one of the things I really like in the Domoticz view, is the graph of usage and return (totals) for the day. I tried to replicate it in Dashticz with

Code: Select all

blocks['p1-meter'] = {
        devices: ['1'],
        width: 12,
        height: '300px',
        graph: ['line','line'],
        graphTypes: ['eu','eg'],
        lineFill: true,
        borderColors: ['rgba(83, 51, 198, 1)','rgba(50, 180, 100, 1)'],
}
This is almost correct, except for the fact that both graphs use a different Y-axis. I want them to use just one. I've tried for hours now, but can't figure it out... Is there an easy way to fix this?
Should work in 3.8.6 (just released). Can you test?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest