I am working on a dashboard which currently has two statistics graph cards and a history graph card. I have included a screenshot of this part of the dashboard below. Is it possible to align the X axes for all three? Also, is there something like the statistics graph card that doesn’t actually do statistics and just shows the data? I didn’t happen to see one but I was looking for other things at the time, so I’ll be going back to check again.
#Align X axes on graphs
1 messages · Page 1 of 1 (latest)
I think it aligns them if you put all 3 charts in the same history graph card?
Also, is there something like the statistics graph card that doesn’t actually do statistics and just shows the data?
History graph card? Or I may be misunderstanding the question.
I do not think you are misunderstanding the question, the history graph cards does indeed display the data like the statistics graph card without doing the statistics. Yes, putting all four data sources into the history graph aligns the X axes but I’m trying to keep battery level and input level on separate graphs due to the massive difference in Y axis values — is there some graceful way to enforce that?
It doesn't seem like any of your entities have a unit_of_measurement. Have you tried assigning some?
If they have distinct units, they will go on separate graphs
They have device_class values (battery for Battery Level, power for AC Input and Solar Input) and I thought that meant they had separate default unit_of_measurement values based on https://www.home-assistant.io/integrations/sensor/
Hmm I'm not familiar with a 'default' unit of measurement. I understood that an entity had to have a unit and a device_class.
If they have a unit it appears here:
Okay, these entities are MQTT discovered through code of mine so I can add unit_of_measurement there.
Okay, added the units and restarted the relevant bits and it looked good for a moment but is now at “Loading state history…” even when the history card only has Sun 😦
check the logs for anything suspicious
Nothing looked super obvious, but a reboot cleared things up
Trying to rename the entities in the legend is what broke “Loading state history…” by the way, and restarting HA was the only way back — even after deleting the card. I will definitely track that down to file a bug report
Any idea what’s driving the order of the stuff on the right? Why is the plug on the top when it’s on the bottom on the right?
non-numeric graphs are always first
Ah interesting
Otherwise I think it goes by order