mini-graph-card
mini-graph-card copied to clipboard
Optionally show y-axis and x-axis values outside of graph
Just like the core statistics graph it would be nice to be able to show the axis values outside of the graph. Things like time etc. would be more much clear :)
https://www.home-assistant.io/lovelace/statistics-graph/
Note: I cannot use the statistics graph since it only supports long-term statistics, not all sensors are supported.
This feature sadly enough doesn't fit well with the design language we have in mind for the card, unless I misunderstand your request. Could you give a more concrete example that would need this? Thanks for your contribution!
Hi @jlsjonas
What do you mean with that it wouldn't fit in the current design langauge? This would be an extra for the graph (below or beside it), not a modification. You also already have the min and max value used in the graph so for the Y axis you can easily calculate the values in between. The X axis would probably always be a time/date based grid I suppose?
Examples:
Current:
With X-axis as days/time (see below):
With both X-axis and Y-axis:
With both X-axis and Y-axis with an extra secondary Y-axis on the right:
The principles behind mini graph card is to be quite simple & clean, however I can see enough benefit towards considering at least x axis to provide better user feedback.
Completely understand :) hence I think this should always be opt-in. The Y axis can definitely enhance the UX when aggregating two separate charts (using a secondary entity) but indeed the X-axis would be the main feature as this will give some time context in an overview.
I also think it might be of great help to show the graph lines of these axis pointers on hover, similar to the graph card in HA core:
I would love x and y-axis also :-)
I would also love this feature, it's the main thing that causes me to go to ApexCharts rather than mini-graph-card.
I'd vote for this as well. I've changed all my dashboards to use the mini graph. However, the complete lack of any time context makes them fairly impractical, as beautiful as they are, so I'm researching other options now. The best "workaround" is to add in the title the time range represented. Anything that is around 24hours is understandable but beyond that, you are pushing the limits of the current design. Another option is if you switch to the bar chart mode, then anything up to a week is also useful. My sense is the graph was originally envisioned to give you the 'trend' of very recent changes, a few hours to a day and for that it is absolutely amazing.
Just as an update for others seeking the same feature. I've completely switched to apex cards which has x/y axis management and much much more features :) Hopy this helps!
Apex is ok, but is much slower/heavier then mini-graph-card.
Apex is ok, but is much slower/heavier then mini-graph-card.
Didn't have such issues with it tbh. Then again, because it can support many things I can imagine that based on your config it could get heavier on your system, which is only logical.