mini-graph-card icon indicating copy to clipboard operation
mini-graph-card copied to clipboard

No color_thresholds unless hovering

Open sciurius opened this issue 3 years ago • 3 comments

I have this graph:

      - type: custom:mini-graph-card
        hours_to_show: 4
        graph: line
        points_per_hour: 60
        hour24: true
        font_size: 75
        line_width: 2
        show:
          legend: false
          labels: true
        color_thresholds:
          - value: 0
            color: "#00ff00"
          - value: 60
            color: "#ff0000"
        entities:
          - entity: sensor.ithocve_fan_speed_status
            name: Afzuiging
            y_axis: secondary
            color: blue
            show_points: false
            show_line: false
          - entity: sensor.ithocve_humidity
            name: Vochtigheid
        name: Afzuiging (4 uur)

Problem is that the threshold colors do not show (upper picture) unless I hover over it (lower picture). What am I doing wrong?

x

sciurius avatar Jul 07 '22 09:07 sciurius

Just curious - what happens if color_thresholds_transition: hard is added?

ildar170975 avatar Jul 07 '22 12:07 ildar170975

scrot20220707153604

(I lowered the threshold to 55 for this example)

sciurius avatar Jul 07 '22 13:07 sciurius

I have the same. For me, greens were coming out as greys unless i hovered over them. color_thresholds_transition: hard fixes it. Firefox 103, on macOS.

Jc2k avatar Jul 29 '22 06:07 Jc2k

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[bot] avatar Sep 27 '22 10:09 stale[bot]