You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two series of data to show electricity price (today and tomorrow).
Tomorrow graph is allways too high....It is starting from level that today graph set. Hopefully attached image will clear what I mean.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have two series of data to show electricity price (today and tomorrow).
Tomorrow graph is allways too high....It is starting from level that today graph set. Hopefully attached image will clear what I mean.
Below is my code:
type: custom:apexcharts-card
graph_span: 48h
span:
start: day
offset: +0H
header:
title: Pörssisähkön hinta
show: true
show_states: false
colorize_states: true
hours_12: false
stacked: true
experimental:
color_threshold: true
all_series_config:
show:
legend_value: false
datalabels: false
extremas: true
in_brush: true
float_precision: 3
type: area
invert: false
fill_raw: last
color_threshold:
- value: 06.00
color: 1E90FF
- value: 18.00
color: '00800 0'
- value: 36.00
color: DAA520
- value: 50.00
color: FF0000
now:
show: true
label: Nyt
color: red
series:
entity: sensor.nordpool_kwh_fi_eur_2_10_0
name: Tänään
opacity: 0.8
extend_to: false
data_generator: |
return entity.attributes.raw_today.map((start, index) => {
return [new Date(start["start"]).getTime(), entity.attributes.raw_today[index]["value"]];
});
entity: sensor.nordpool_kwh_fi_eur_2_10_0
name: Huomenna
opacity: 0.5
data_generator: |
return entity.attributes.raw_tomorrow.map((start, index) => {
});
apex_config:
chart:
height: 400px
animations:
enabled: false
easing: easeinout
speed: 800
animateGradually:
enabled: false
delay: 150
zoom:
enabled: false
type: x
autoScaleYaxis: true
legend:
show: false
floating: true
offsetY: 25
yaxis:
opposite: false
reversed: false
logarithmic: false
decimalsInFloat: 2
labels:
show: true
tooltip:
enabled: true
crosshairs:
show: true
xaxis:
labels:
show: true
rotate: -45
rotateAlways: true
logarithmic: true
stroke:
show: true
curve: stepline
lineCap: butt
colors: undefined
plotOptions:
candlestick:
colors:
upward: '#00B746'
downward: '#EF403C'
wick:
useFillColor: true
markers:
size: 1
grid:
show: true
strokeDashArray: 1
position: front
xaxis:
lines:
show: true
Beta Was this translation helpful? Give feedback.
All reactions