Improve scaling of graphs.

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
Bochelork
Posts: 12
Joined: Sunday 26 November 2017 12:53
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Improve scaling of graphs.

Post by Bochelork »

My temperature history graph has a minimum of -6 degrees and a maximum of 43 degrees. The temperature scale goes from -60 to 60 degrees. So it's a range of 120 degrees while only 50 degrees is needed. Graphs are very flat this way. Maybe round the top and bottom to 10 degrees, so in my case let the scale go from -10 to 50 degrees.
User avatar
Antori91
Posts: 136
Joined: Sunday 12 February 2017 17:12
Target OS: NAS (Synology & others)
Domoticz version: 4.10717
Location: France
Contact:

Re: Improve scaling of graphs.

Post by Antori91 »

+1
Domoticz High Availability Cluster: Synology Dz V4.10693 (Main) - Raspberry Dz V4.10717 (Backup) - Scripts Node.js
Alarm server: Raspberry - motionEye - iot_ALARM-SVR Node.js
Sensors/Actuators: ESP8266-Arduino
https://github.com/Antori91/Home_Automation
JanAtHome
Posts: 38
Joined: Wednesday 10 January 2018 16:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 38153
Location: Raalte Holland
Contact:

Re: Improve scaling of graphs.

Post by JanAtHome »

+1
Xztraz
Posts: 107
Joined: Tuesday 31 January 2017 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Improve scaling of graphs.

Post by Xztraz »

i tried doing something abut this a couple of years ago but the framework for the graphs was a bit buggy and didn't allow for better combined ranges for temp and humidity ins the same graph. maybe the graph framework have been updated since then?
User avatar
gizmocuz
Posts: 2350
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Improve scaling of graphs.

Post by gizmocuz »

I think we can assign a min and max value to the graph like is done for the voltage graph for example...
Quality outlives Quantity!
User avatar
gizmocuz
Posts: 2350
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Improve scaling of graphs.

Post by gizmocuz »

Okey, seems this was done in the past...

We can configure the chart with some options:

alignTicks: false,
tickInterval: 0.5

This results in:
temp1.png
temp1.png (82.78 KiB) Viewed 1757 times
but now when enabling the Humidity the result is maybe a bit messy with the grid lines:
temp2.png
temp2.png (101.58 KiB) Viewed 1757 times
We can hide the gridlines always from the Humidity graph:
temp3.png
temp3.png (93.77 KiB) Viewed 1757 times
Without temp the humidity would then look like:
temp4.png
temp4.png (73.63 KiB) Viewed 1757 times

Whats preferred ? (ps. the 120% is still considered to be a bug in highchart...)
Quality outlives Quantity!
Xztraz
Posts: 107
Joined: Tuesday 31 January 2017 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Improve scaling of graphs.

Post by Xztraz »

i think another option is to not show the grid lines for example humidity but stil show a scale for that. but then the lines will only align to temperature scale. i fighted with this before and then i considered readable scale lines as more important than 100%. but thats just my opinion among a lot of others regarding graphs. ;) maybe a bug report in their github would be best. i only reported in their forum
Xztraz
Posts: 107
Joined: Tuesday 31 January 2017 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Improve scaling of graphs.

Post by Xztraz »

i see they have a bunch of bugs regarding autoscaling, ticks and so on and they don't seem high priority.
User avatar
Antori91
Posts: 136
Joined: Sunday 12 February 2017 17:12
Target OS: NAS (Synology & others)
Domoticz version: 4.10717
Location: France
Contact:

Re: Improve scaling of graphs.

Post by Antori91 »

Hello,

I don't use very often graphs with Humidity value. Below are two examples with temperature only. To have usable graphs, the scale of the temperature graphs should be set (I think) accordingly to the min/max of the temperature. For example, for the "Temperature Last Year" graph below, the scale should be between 0°C and +30°C and not between -20°C and + 60°C.
Capture.GIF
Capture.GIF (307.62 KiB) Viewed 1731 times
Domoticz High Availability Cluster: Synology Dz V4.10693 (Main) - Raspberry Dz V4.10717 (Backup) - Scripts Node.js
Alarm server: Raspberry - motionEye - iot_ALARM-SVR Node.js
Sensors/Actuators: ESP8266-Arduino
https://github.com/Antori91/Home_Automation
Xztraz
Posts: 107
Joined: Tuesday 31 January 2017 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Improve scaling of graphs.

Post by Xztraz »

same kind of bug regarding temperature scale in graph framework
User avatar
Antori91
Posts: 136
Joined: Sunday 12 February 2017 17:12
Target OS: NAS (Synology & others)
Domoticz version: 4.10717
Location: France
Contact:

Re: Improve scaling of graphs.

Post by Antori91 »

Hello,
Is there any improvement regarding this issue using the latest release?
Domoticz High Availability Cluster: Synology Dz V4.10693 (Main) - Raspberry Dz V4.10717 (Backup) - Scripts Node.js
Alarm server: Raspberry - motionEye - iot_ALARM-SVR Node.js
Sensors/Actuators: ESP8266-Arduino
https://github.com/Antori91/Home_Automation
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest