Line Colors don't match color_thresholds
See original GitHub issueWhen 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 -
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:
- Created 5 years ago
- Comments:10 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for the reply. I will do some additional test when I can and spin up a separate HASS instance to try.
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.