Replies: 3 comments
-
If you like, I have created the a colour increment for every 3 degrees celcius. I have used your code below (with my sensors) and changed the points per hour to only 1. The blue circles are the points that you have allocated, and having 4 per hour on a 24 hour display ends up quite full. The code below gives me the following results: As you can see, the smaller increments mean that even this small graph (that only goes from 16 deg to 22deg (the 12 is the other sensor) yet you can see the gradient from yellow to green.
|
Beta Was this translation helpful? Give feedback.
-
i seems somehow my issue got resolved with the subsequent releases (or the higher temperatures) and the colors are displayed correctly including the transitions |
Beta Was this translation helpful? Give feedback.
-
This issue itself rather questionable:
|
Beta Was this translation helpful? Give feedback.
-
I am pretty sure I am doing something wrong, but cant figure out what. I am using the following code to change the line color according to the temperature:
the result looks like this:
the line is solid green, while i'd expect it to be rather blue-ish and have some kind of more prominent gradient given the temperature range between 9-13 C. if the temperature goes above 15 the whole graph turns green, even the parts below 15 C
when I hover on the graph it turns blue, matching the color setting in the code - while its more "correct", it still does not have any gradient indicating the change in the temperature
Also then there is a temperature range across different thresholds, upon hover they are shown, but without hover i just get the whole line in the color of the current temperature (mostly).
I know about the "hard" transition parameter, but I want gradient transitions.
I think the issue here is, that the color of a line at a given time changes according to the temperature that occurs later on. E.g. if the temperature at 6:30 was 12 C it gets assigned a blue color, but if the temp raises during the day to lets say 20 the point at 6:30 changes its color. Is there a way to make it constant somehow?
Beta Was this translation helpful? Give feedback.
All reactions