I have a noob question that I’m sure is very simple: how do I use data_generator to force the chart to use server time? I see that it is supported now, but I cannot find an example and I do not know java script. All the examples seem more complex to shift the time or add logic that doesn’t apply to me.
I found this snippet on the GitHub page: data.push([start.getTime()]) but I can’t seem to get it to work. Here is a chart that I am trying to add it to:
I have couple of ApexCharts that use some configured values that are stored in helpers. Unfortunately I’m unable to figure out how I can use helper values inside the data_generator code.
Is it even possible with ApexCharts? I also tried wrapping it in a iantrich/config-template-card, but also that doesn’t work for the data_generator code…
For some reason var(--card-background-color) does not do anything for me, it’s just black. I’ve tried several other color variables and none of them works, all just black.
If I manually set a color with a hex or name it does work as intended. Any idea whats wrong?
I spent hours yesterday on formatitng a lot of cards and with odd issues, then finding out that I had card_mod 2.5.0 installed which apparently has bugs, downgraded to 2.4.4. and it works
Yeah, sorry… I meant 3.4.4 (and buggy 3.5.0)…but nothing more, did no need an additional further downgrade > upgrade. Why do you suggest this, something I am not aware about?
I’ve also tried a few of the system color variables, I get the same “black” colour results. It looks like the the color variables are not working. The document example shows an example with color variables so it should work, I am wondering whether this is a recent bug,
Exactly … this is expected of course as how else can the grid know what to do. There is another post of a few days ago that explains how you can ‘fix’ the grid but not sure if that is what you like
I think you’ve misunderstood. I want to format the value inside the donut to two decimals. For example, if I click on the Server Rack slice, I want to see 2.41 kWh inside the circle, not 2.40952533458485. Similar to how the Total value displays.
I copy from your post : “values of a slice”
And now you are adding more conditions…
Most the stuff is here but I guess you already found that pie – ApexCharts.js
I copy from your post : “values of a slice”
And now you are adding more conditions…
Well, no, I’m not. You continue to misunderstand the question.
If you look at my yaml, you’ll see that I already have that in place for TOTAL and it works just fine. However, if I click on one slice of the donut, SERVER RACK for instance, it displays a lengthy number with 12 decimals. That is the value I want to configure to two decimals.
On a few of my ApexCharts the graph will show a value of zero, when the values should be no where near zero. I assume this is due to invalid data. Looking at the sensor logs it seems that the zeros might correspond to when the log is showing a value of “unavailable”. Is this what is causing the charts to show a zero value?