Page 1 of 1

Axis break in graphs

Posted: Friday 30 May 2025 14:45
by mvdp
After the last update to the latest version (went smooth, thanks a lot!) I noticed that graphs are not having an axis break, ie. they all show a full y-axis scale starting at 0 to the values measured. I remember vaguely that this was not the case before.
See below for an examples without and with axis break.

As you can see the axis break allows to clearly see what is going on. But that might be a personal opinion, so would it be hard to show graphs with axis break as an optional (global) configuration item?

No axis break example:
no-axis-break.png
no-axis-break.png (133 KiB) Viewed 70 times
Same data with axis break:
with-axis-break.png
with-axis-break.png (332.19 KiB) Viewed 72 times

Re: Axis break in graphs

Posted: Friday 30 May 2025 19:53
by waltervl
I think this change has caused this https://github.com/domoticz/domoticz/co ... 83bd293822

You can play with the file www/app/log/RefreshingChart.js to change the behavior as you do not have to build anything.

Re: Axis break in graphs

Posted: Saturday 31 May 2025 10:02
by mvdp
Thanks! Reverting line 85 in www/app/log/RefreshingChart.js returns the broken axis view again.
The change (git sha f0cff38a70) was added recently on May 25th by GizMoCuz with message: 'Default area graph type for most day charts'.
Not sure which problem this fixes?
It is using boolean flag `isShortLogChart` for CounterLogChart that has been in since 2020.