We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Consider this card:
type: custom:mini-graph-card entities: - entity: sensor.xiaomi_cg_1_co2 hours_to_show: 24 hour24: true
The selected point belongs to an interval which has both left & right bounds from "yesterday". Only a time is displayed for these bounds.
Another case - an interval with bounds from different days:
Same - no dates are displayed for bounds.
This happens if hours_to_show <= 24.
hours_to_show
Now check this card:
type: custom:mini-graph-card entities: - entity: sensor.xiaomi_cg_1_co2 hours_to_show: 24.1 hour24: true
When both bounds are from "today" - a date is displayed for both bounds:
I would say - no need to show a date for a today's bound (at least for both of them).
When bounds from different days - dates are shown for both bounds as well, looks OK:
And when both bounds are from same "not-today" day:
Proposals:
Alternatively:
The text was updated successfully, but these errors were encountered:
Just to note: the current behaviour is apparently "by design":
mini-graph-card/src/buildConfig.js
Line 158 in af01df1
But that doesn't mean we can't improve it.
Additional suggestion: if both bounds also have the same time (as will happen with points per hour > 60), show only one time.
Sorry, something went wrong.
if both bounds also have the same time (as will happen with points per hour > 60), show only one time.
Agreed!
No branches or pull requests
Consider this card:
The selected point belongs to an interval which has both left & right bounds from "yesterday".
Only a time is displayed for these bounds.
Another case - an interval with bounds from different days:
Same - no dates are displayed for bounds.
This happens if
hours_to_show
<= 24.Now check this card:
When both bounds are from "today" - a date is displayed for both bounds:
I would say - no need to show a date for a today's bound (at least for both of them).
When bounds from different days - dates are shown for both bounds as well, looks OK:
And when both bounds are from same "not-today" day:
Proposals:
hours_to_show
).hours_to_show
).Alternatively:
hours_to_show
<= 24 - do NOT show a date for a bound; otherwise - show a date (i.e. leave the current behaviour).The text was updated successfully, but these errors were encountered: