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

Big values overlap #26

Open
PonyOny opened this issue Mar 8, 2020 · 8 comments · May be fixed by #70
Open

Big values overlap #26

PonyOny opened this issue Mar 8, 2020 · 8 comments · May be fixed by #70

Comments

@PonyOny
Copy link

PonyOny commented Mar 8, 2020

When displaying big values they overlap and card does not adapt & render properly
image

@Rocka84
Copy link
Collaborator

Rocka84 commented Apr 20, 2020

Hi!
Confirmed :-(
Unfortunaltely I have no idea how to fix this within the space constrains. Shrinking the font for example would make the values too small to read.
My only advise would be to drop the unit labels. Maybe you could integrate the unit in the card title, like title: Speed in Mbps.
I'll come back to this issue when I can think of a solution.

@dynasticorpheus
Copy link

@Rocka84 Perhaps you could add an option to have the values at the bottom instead of name which would already help a bit?

@ciaron23
Copy link

having the same troubles. I think adding the option of font styling would help :3

@KTibow
Copy link
Contributor

KTibow commented Jul 22, 2020

Also, how about to put it on the top as well? Or instead of side-by-side then vertical.

@eode
Copy link

eode commented Nov 18, 2020

I think having the labels above/below each other instead of (or as well as) name might work nicely.

Rather than:
571.78  356.39
Down     Up
Speed Test

This could be
571.78 Down
356.39 Up
Speed Test

Also, people can round their values to reduce them somewhat.
Another option is to have the reading inside the progress bar for each one, centered (but text color would need to be settable, or calculated for contrast).

@saper-2
Copy link

saper-2 commented Jul 12, 2021

Or maybe go for few solutions, so user can "pick what want", I'd add options:

  • set font size for each gauge label (maybe custom colors depending on value)
  • set precision of displayed number in label (this is what I basically would want the most 😄 )
  • label layout: column(horizontal-stack)/line(vertical-stack)

If I could set precision to 0.1 (1 digit after comma) it would fit, or make the label stacked vertically ( layout: line(vertical) )
obraz
(this is screenshot with set cardwidth: 350 )

@Ni3kjm
Copy link

Ni3kjm commented Nov 27, 2022

Loving this card thanks, any way to set so different units are used if values exceed set amount to avoid the logger value overlap? E.g. Changing to show value in kW instead of W where I use for solar generation or grid use

@ziermmar ziermmar linked a pull request Apr 24, 2024 that will close this issue
@ziermmar
Copy link

  • set precision of displayed number in label (this is what I basically would want the most 😄 )

If I could set precision to 0.1 (1 digit after comma) it would fit, or make the label stacked vertically

Take a look at my Pull Request for that feature (#70)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

9 participants