her er konfigurasjonen fra Stigvi med litt extra vis noen vil bruke
type: 'custom:apexcharts-card'
header:
show: true
title: Pris
show_states: true
colorize_states: true
series:
- entity: sensor.nordpool_kwh_oslo
name: Pris
type: column
curve: stepline
extend_to_end: false
float_precision: 3
stroke_width: 2
opacity: 0.2
color: 'rgb(255,111,0)'
- entity: sensor.nordpool_kwh_oslo
name: Pris
type: column
curve: stepline
extend_to_end: false
float_precision: 3
stroke_width: 2
opacity: 0.2
color: 'rgb(2,93,136)'
data_generator: |
return entity.attributes.raw_today.map((p) => {
return [new Date(p.start), (new Date() > new Date(p.start)) ? null : p.value];
});
- entity: sensor.nordpool_kwh_oslo
name: Pris
type: column
curve: stepline
extend_to_end: false
color: 'rgb(2,93,136)'
float_precision: 3
stroke_width: 2
opacity: 0.2
data_generator: |
return entity.attributes.raw_tomorrow.map((p) => {
return [new Date(p.start), p.value];
});
y_axis_precision: 3
now:
show: true
graph_span: 3d
span:
start: day
offset: '-1d'
locale: nb
apex_config:
chart:
height: 148px
zoom:
enabled: true
toolbar:
show: true
tools:
zoom: true
zoomin: false
zoomout: false
pan: false
reset: true
legend:
show: false
dataLabels:
enabled: false
xaxis:
type: datetime
labels:
datetimeFormatter:
month: ddd
day: ddd
tooltip:
fixed:
enabled: true
position: bottomLeft
color_threshold: null
color: red