On a simple line graph depicting a thermostat’s temperature values (yaxis) against time (xaxis), I’m trying to add the active thermostat preset mode (e.g. wake, sleep, away) temperature ranges. Here is the configuration I’m currently using:
The problem is that the area below the preset’s minimum temperature and when that preset mode is inactive (i.e. not the current preset) still depicts as filled in.
Is there a way to achieve an area graph with a min and max set to a predefined yaxis temperature range only when the transform evaluates to true?
Where series[2] is the series number you wish to display. Note series numbering starts at zero so [2] shows the third series. To show total it’s seriesTotals
I want it to use the same axis (temperature) for each of the temperature ranges of the respective presets, but only when that preset is active (otherwise not displayed at all).
This screenshot roughly demonstrates the two areas I do not want filled in:
The colored areas on the right were my first attempt at the four presets, but you can see all of them appear “on” since all of them shade below their minimum values even when they’re “off.”
Essentially, I’m trying to get the constrained yaxis depiction available via annotations, but time bound to the binary state of each thermostat preset mode (of which only 1 of 4 can be active at a time).
@RomRider I was able to sort of get this working by playing around with color_threshold, but I couldn’t quite configure a hard transition for opacity, so I still have a gradient where I don’t want one. Are there guides on how to configure the thresholds?
The value it shows will be a percentage of the bar that’s filled in. It works ok for mine without further calculations as I use a range of 0-1. You would have to further modify the eval function to calculate the true value.
Can anyone help me with a simple change please?
I’ve been unable to center xlabels to value 0. and make the X axis (x=0) bolder than the other yaxis ticks.
Is that achievable?
My graphic goes from posiive to negative values.
I’m trying to track what time I go to bed every day. An automation enters an input_datetime which is what I’m trying to chart. The problem is that it only seems to recognize the hours of the timestamp and not the minutes.
This should say something like “17:45” and not 17.
Hello, can anyone explain why the blue graph is not properly scaled? YAxis on right shows scale for orange graph which is OK, but blue graph is using different scale, basically it should be half.
Here on the screenshot the blue value is 2149W, but it is on 6000W line.
Hello all, I am comparing temp sensors now with yesterday by using an offset of 1d.
The header states are however ‘off’ which may be expected.
For ‘now’ it shows the current values
For the offset, it shows the value at the end of the span midnight last night)
Is there a way to make the header state of the offset show ‘now - offset’
I’m trying to create a graph, line or area, doesn’t matter which one.
Just plotting values,
When value gets 0 or below, line has to turn green (not fading to green, just instant green), above 0 it has to be orage.
I’m plotting a temperature graph, with 2 series, 1 being the history of the past 24 hours of outside temperature and the 2nd being a forecast for the next 12 hours.
Now, if only I could add the condition (or perhaps precipitation) in a way to the datalabels, it would replace my hourly-weather card.
I can’t add this extra info to the series data, because that has to be a date+value pair list only. I know I can customize the datalabel formatter through the apex config, but I don’t seem to be able to access the entity there to somehow get access to the other details beside temperature. Is there any way to somehow reach this extra info in the datalabels?
This card looks awesome and I have been spending some time trying to achieve what other has achieved. I have read more than 2000 posts on this page and my head cant take more for now. What I am trying to do is to show the energy price and the consumption and show the consumption by hour. Somehow I struggle with the consumption as it will not show the correct values. As I am a Tibber-user I got several sensors showing consumption. I got the accumulated consumption current hour, I got the accumulated consumption for the day, and I got the last meter values. I also have made a utility meter witch resets every hour, still the columns shows up very stange and far from correct. Can anyone tell me what to do? The code as it is for now is:
i am looking for a real nice solution for displaying a battery.
Is this possible with apexCharts too? or does someone have a better hint?
It is just a bargraph showing the charge-amount of a battery, but in “nice”.