dual-gauge-card icon indicating copy to clipboard operation
dual-gauge-card copied to clipboard

Big values overlap

Open PonyOny opened this issue 4 years ago • 8 comments

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

PonyOny avatar Mar 08 '20 23:03 PonyOny

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.

Rocka84 avatar Apr 20 '20 15:04 Rocka84

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

dynasticorpheus avatar Apr 30 '20 17:04 dynasticorpheus

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

ciaron23 avatar May 30 '20 10:05 ciaron23

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

KTibow avatar Jul 22 '20 17:07 KTibow

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).

eode avatar Nov 18 '20 15:11 eode

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 )

saper-2 avatar Jul 12 '21 22:07 saper-2

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

Ni3kjm avatar Nov 27 '22 13:11 Ni3kjm

  • 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)

ziermmar avatar Apr 24 '24 20:04 ziermmar