You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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