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

Line don't change color based on color_thresholds #619

Closed
tethyso opened this issue Jun 19, 2021 · 4 comments
Closed

Line don't change color based on color_thresholds #619

tethyso opened this issue Jun 19, 2021 · 4 comments
Labels
stale Stale issue - closed due to inactivity

Comments

@tethyso
Copy link

tethyso commented Jun 19, 2021

I'm not able to reproduce this issue, tried on Firefox, Chrome & Safari on macOS and Chrome on Android. (changed the yellow threshold to 35 for testing purposes)

hyperion_8123_lovelace_4 (46)

Your issue sounds very similar to #52 & #54 but they were addressed with 7d65869

Originally posted by @kalkih in #70 (comment)

@tethyso
Copy link
Author

tethyso commented Jun 19, 2021

Same problem here....

type: custom:mini-graph-card
name: HAL Utilizo RAM
font_size: 80
entities:
  - entity: sensor.glances_ram_used_percent
    show_state: true
    name: RAM
align_state: center
show:
  graph: line
  minimum: true
  average: true
  extrema: true
hours_to_show: 10
color_thresholds:
  - value: 0
    color: green
  - value: 60
    color: '#ff6007'
  - value: 90
    color: red

immagine

@tethyso tethyso changed the title I'm not able to reproduce this issue, tried on Firefox, Chrome & Safari on macOS and Chrome on Android. (changed the yellow threshold to 35 for testing purposes) Line don't change color based on color_thresholds Jun 19, 2021
@typxxi
Copy link

typxxi commented Jun 19, 2021

ATTENTION: here it works on chrome OS (Win client) and Raspi 4 with docker, but not the right way I expect, I mean the color of the latest state and not the lowest state

image

That light orange does not represent color of the latest stage (more red), but the color of the lowest stage I guess.

@typxxi
Copy link

typxxi commented Jun 19, 2021

name: HAL Utilizo RAM

that line cause trouble if I copy it into mine and wanna save: it disappears or merges together with the fontsize.

I had copied your code elements into mine here and it worked after eleminating the name line.
Throw everything away you do not need right now.

type: 'custom:mini-graph-card'
entities:
  - entity: sensor.ble_weight_mi_scale2
show:
  labels: 'true'
  state: 'false'
  name: 'false'
  icon: 'true'
  name_adaptive_color: 'true'
  icon_adaptive_color: 'true'
color_thresholds:
  - value: 102
    color: '#f39c12'
  - value: '104'
    color: '#d35400'
  - value: '105'
    color: '#c0392b'
name: GEWICHT - 10 Tage
hours_to_show: '240'
group_by: hourly

@stale
Copy link

stale bot commented Feb 6, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is still an active issue, please let us know!

@stale stale bot added the stale Stale issue - closed due to inactivity label Feb 6, 2022
@stale stale bot closed this as completed Feb 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Stale issue - closed due to inactivity
Projects
None yet
Development

No branches or pull requests

2 participants