kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
2.92k stars 232 forks source link

Horizontal background color by range #454

Closed JasonSwindle closed 2 years ago

JasonSwindle commented 3 years ago

Howdy,

I wish to have horizontal background colors by range like this:

image

I can currently do something like this:

image

Is this possible now?

AQI Line code:

type: 'custom:mini-graph-card'
name: Air Quality Index - Bedroom
entities:
  - sensor.m5stack_aq_001_pm_2_5_aqi
hours_to_show: 48
points_per_hour: 60
show:
  labels: true
color_thresholds:
  - value: 50
    color: green
  - value: 100
    color: yellow
  - value: 150
    color: orange
  - value: 200
    color: red
  - value: 300
    color: purple
  - value: 500
    color: maroon
stale[bot] commented 2 years ago

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!

JasonSwindle commented 2 years ago

This is still a valid feature request.

stale[bot] commented 2 years ago

Still an active issue, got it! Removing stale label.

stale[bot] commented 2 years ago

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!