Hello,
Is it possible to color the graph of a specific value, such as the opening price below the previous day’s closing price, with red if it’s negative or green if it’s positive?
type: vertical-stack
cards:
- type: custom:mini-graph-card
entities:
- entity: sensor.ing_stocks_us67066g1040
name: Nvidia (Last 24 Hours)
font_size_header: 12
font_size: 90
hours_to_show: 24
hour24: true
points_per_hour: 12
line_width: 2
smoothing: false
show:
labels: true
color_thresholds_transition: hard
color_thresholds:
- value: 0
color: "#4fc1ff"
- value: 200
color: orange
- type: custom:mini-graph-card
entities:
- entity: sensor.ing_stocks_us67066g1040
name: Nvidia(Last 7 Days)
font_size_header: 12
font_size: 90
hours_to_show: 168
hour24: true
points_per_hour: 4
line_width: 2
smoothing: false
show:
icon: false
extrema: true
labels: false
color_thresholds_transition: hard
color_thresholds:
- value: 0
color: "#4fc1ff"
- value: 200
color: orange
So I get some values:
Zumindest habe ich einen change percent mit plus oder minus
name: NVIDIA isin: US67066G1040 currency: EUR change_percent: -0.1 change_absolute: -0.16 exchange: Direkthandel last_update: 2025-11-07T21:59:52+01:00 unit_of_measurement: € device_class: monetary icon: mdi:currency-eur friendly_name: ING Stocks US67066G1040