Good morning.
My problem seems very simple, but I can’t find the solution…
I have 3 series (electrical phases) that share the axes, scales and marked limits.
The problem I have is that if I click on the series name (below) to stop viewing one and concentrate on another, when I bring up Phase A, it removes the axes and limits from my view. When I bring up Phases B and C, it doesn’t. It’s like everything is associated with Phase A, but I can’t find this in the configuration.
Does anyone know what’s wrong or what I need to configure so that the information is visible in all the series? Thanks.
Thanks for the reply.
If I put it like this (see code) it doesn’t take the limits. Putting it or not has the same effect… It’s true that I see the axes with any selection, but I lose the maximum and minimum limits.
Or did I do it wrong?
I still can’t figure out how to use the server time. Most of my attempts result in an error, but when I try the code below, there is no error, but the chart just says “Loading…” and never returns any data.
Thanks for the reply. That is where I’m getting stuck. The temp sensor does not have an attribute for the server time, so I know that’s not right. From the Developer Tools, this is all that is available with the sensor:
state_class: measurement
unit_of_measurement: °F
device_class: temperature
friendly_name: Water Temperature
This is the Github page that indicates that it is possible to use the server time, but I can’t find a reference for how to do it with an entity that doesn’t have that attribute
The only code reference (after the feature was introduced) was asking for help and I don’t understand the response or how to apply it to my situation. All I am trying to do is force the chart to use the time from the server. Not looking to shift it or anything else.
I’m not sure what you mean by show the data. Here is what the chart looks like if I remove the data_generator:
I’m sure it’s something small that I am missing, I just don’t know what.
I will forward a virtual beer to anyone that can support me, as I have discussed with chatgpt down a rabbit hole for the last 2 hours without solving it
Thanks.
But the variable scale functionality if it exceeds the limits that the “~” symbol gives me would not be working within apex_config.
Moreover, I think that in your example it does not work either, because you should see the axis between 2 and 25 (because your lower part of the graph is not lower than 2) and you see it from 0 to 25.
I tried putting it with fixed limits (that is, without “~”) and my problem is partially solved, because I see the scales and limits in all the series, but in this way if the limits are exceeded, they are left out of the graph.
Apparently one cannot have all so fix the max/min or… accept hidden axis
Along apexcharts.js you could create a function too, to set the values min/max but I have no example/experience
EDIT: not sure if this is a direction but…
yaxis:
- min: EVAL:min => min -2
max: EVAL:max => max +3
All I want is to use the time from the server, not the client. You make a good point on ‘time’ vs ‘timezone’ and it may not be possible. Still, I’d like to test it. RomRider’s last comment in the Github thread makes me think it might be possible using start.getTime()
Without veering too far off, my use case is an Amazon Fire tablet with Fully Kiosk that is blocked from the Internet. Amazon removed the ability to manually set the time and it doesn’t use normal NTP that I can redirect. There are countless threads on how Amazon will not help with this but the time on the tablet doesn’t matter to me if I can get the card to use the server time.
I thought about that but it’s not stable. I can connect it briefly to the Internet and it resets the time correctly, then I can move it back, but the time will slowly drift. And if the tablet resets, it goes back to the last time it was connected to the Amazon server. It currently thinks the time is 2 days and 3 hours ago