Hi guys and girls!
I am trying to create an ajustable Y axis / horizontal bar that is adjustable with a helper.
input_number.prijss is my helper so adjustable.
When I set for Y 0.10 it is showing my red line, but when I set Y 0,10 it doesn’t
Helper is also showing in x,xx, tried to change system settings but does noet work.
This is my code:
type: custom:apexcharts-card
graph_span: 24h
apex_config:
annotations:
yaxis:
- "y": input_number.prijss
borderColor: red
label:
borderColor: red
style:
color: "#fff"
background: red
text: Grens
experimental:
color_threshold: true
header:
title: Energy prijzen vandaag MET extra kosten (€/kWh)
show: true
span:
start: day
now:
show: true
label: Now
series:
- entity: sensor.nordpool_energyprices_2
color: green
type: column
show:
extremas: true
color_threshold:
- value: 0
color: lightgreen
- value: 0.1
color: green
- value: 0.15
color: yellow
- value: 0.2
color: orange
- value: 0.25
color: red
- value: 0.3
color: darkred
float_precision: 3
data_generator: |
return entity.attributes.times.map((time, index) => {
return [new Date(time).getTime(), entity.attributes.prices[index]];
});
yaxis:
- decimals: 2
apex_config:
tickAmount: 10
What am I doing wrong?
Many thanks!