Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save moorgrove/11781f7621b6ee6ce342bbd4507df008 to your computer and use it in GitHub Desktop.
Save moorgrove/11781f7621b6ee6ce342bbd4507df008 to your computer and use it in GitHub Desktop.
type: custom:apexcharts-card
now:
show: true
label: Nu
color: '#ffc0cb'
header:
show: true
title: Elpris Import | 2 Dagar
show_states: true
colorize_states: true
graph_span: 2d
yaxis:
- min: ~0
apex_config:
forceNiceScale: true
span:
start: day
series:
- entity: sensor.nordpool
name: Spotpris
data_generator: >
return entity.attributes.raw_today.map((entry) => { return [new
Date(entry.start), entry.value]; });
show:
extremas: true
in_header: raw
name_in_header: true
offset_in_name: false
header_color_threshold: true
- entity: sensor.nordpool
name: Imorgon
data_generator: >
return entity.attributes.raw_tomorrow.map((entry) => { return [new
Date(entry.start), entry.value]; });
show:
in_header: false
extremas: true
color: '#7D70BA'
locale: sv
apex_config:
legend:
show: false
xaxis:
labels:
format: HH
show: true
rotate: -45
rotateAlways: true
hideOverlappingLabels: true
style:
fontSize: 10
fontWeight: 10
experimental:
color_threshold: true
all_series_config:
offset: '-1ns'
type: column
float_precision: 2
stroke_width: 7
color_threshold:
- value: -10
color: '#a9cce3'
- value: 0
color: '#27ae60'
- value: 0.5
color: '#82e0aa'
- value: 1
color: '#f7dc6f'
- value: 2
color: '#f8c471'
- value: 2.5
color: '#f0b27a'
- value: 3
color: '#d35400'
- value: 3.5
color: '#cd6155'
- value: 4
color: '#e74c3c'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment