question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Line Colors don't match color_thresholds

See original GitHub issue

When using the color_thresholds the fills colors don’t match the line color. The line color never changes - always stays green.

Attaching screenshot of CPU usage -

Screen Shot 2019-03-09 at 9 39 54 PM
type: horizontal-stack
cards:
  - type: 'custom:mini-graph-card'
    entities:
      - sensor.processor_use
    name: CPU
    color_thresholds:
      - value: 0
        color: green
      - value: 50
        color: yellow
      - value: 75
        color: red
    font_size: 75
    line_width: 8
  - type: 'custom:mini-graph-card'
    entities:
      - sensor.memory_use_percent
    name: Memory
    color_thresholds:
      - value: 0
        color: green
      - value: 50
        color: yellow
      - value: 75
        color: red
    font_size: 75
    line_width: 8
  - type: 'custom:mini-graph-card'
    entities:
      - sensor.disk_use_percent_home
    name: Disk
    color_thresholds:
      - value: 0
        color: green
      - value: 50
        color: yellow
      - value: 75
        color: red
    font_size: 75
    line_width: 8

Similar to #54

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
balsman225commented, Mar 13, 2019

Thank you for the reply. I will do some additional test when I can and spin up a separate HASS instance to try.

0reactions
kalkihcommented, Mar 31, 2019

Alright, yeah since the graph is completely based on the moving average, you won’t often see those short spikes with the mini-graph-card. With that said, with a higher points_per_hour set, the moving average will have less of an effect on the data represented.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Threshold color in area and line charts doesn't match color palette ...
Problem. While the series color palette has been updated for area charts and line charts, the threshold color remained the same and is...
Read more >
Dynamic Color based on threshold - Tableau Community
Yes, you can change the colour based on being above or below a threshold. A calculated field such as IF [ProfitPct] > [Threshold]...
Read more >
Lovelace: mini graph card - Home Assistant Community
Invisible graph lines when color thresholds where out of bounds (#91, #92). Invalid rendering of color thresholds when lower bound wasn't at ...
Read more >
r - How do I define color groups based on numerical threshold ...
I am trying to create a scatterplot in ggplot2 where all of the points that are > 3000 are colored in one color...
Read more >
Excel Multi-colored Line Charts - My Online Training Hub
I don't know a way to change colors between 2 data points, you can only change the entire line color unfortunately. Normally, for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found