Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally show y-axis and x-axis values outside of graph #739

Open
JoryHogeveen opened this issue Feb 23, 2022 · 10 comments
Open

Optionally show y-axis and x-axis values outside of graph #739

JoryHogeveen opened this issue Feb 23, 2022 · 10 comments
Labels
feature request New feature or request [Status] Maybe Later We'd love to include this at some point, but it's not on our active roadmap (prevents stale marking)

Comments

@JoryHogeveen
Copy link

JoryHogeveen commented Feb 23, 2022

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.

@jlsjonas
Copy link
Collaborator

jlsjonas commented Mar 6, 2022

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!

@jlsjonas jlsjonas added to be confirmed bugs that still need to be confirmed or preliminary timing that might still update on new info wontfix This will not be worked on labels Mar 6, 2022
@JoryHogeveen
Copy link
Author

JoryHogeveen commented Mar 7, 2022

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:
image

With X-axis as days/time (see below):
image

With both X-axis and Y-axis:
image

With both X-axis and Y-axis with an extra secondary Y-axis on the right:
image

@jlsjonas jlsjonas added [Status] Maybe Later We'd love to include this at some point, but it's not on our active roadmap (prevents stale marking) feature request New feature or request and removed wontfix This will not be worked on to be confirmed bugs that still need to be confirmed or preliminary timing that might still update on new info labels Mar 7, 2022
@jlsjonas
Copy link
Collaborator

jlsjonas commented Mar 7, 2022

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.

@JoryHogeveen
Copy link
Author

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:

image

@Grey-Lancaster
Copy link

I would love x and y-axis also :-)

image

@xthursdayx
Copy link

I would also love this feature, it's the main thing that causes me to go to ApexCharts rather than mini-graph-card.

@ncd7
Copy link

ncd7 commented Jan 20, 2024

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.

@JoryHogeveen
Copy link
Author

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!

@teklabania
Copy link

Apex is ok, but is much slower/heavier then mini-graph-card.

@JoryHogeveen
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request [Status] Maybe Later We'd love to include this at some point, but it's not on our active roadmap (prevents stale marking)
Projects
None yet
Development

No branches or pull requests

6 participants