Hi all,
I have this chart that shows the battery charge level as a line graph. In the future, it simply repeats the same value, displaying a horizontal line. Is it possible to configure the chart so that it ends at the last known value, i.e., up to “now,” and does not display any line beyond that?
Thanks
type: custom:apexcharts-card
apex_config:
chart:
height: 205px
dataLabels:
offsetY: -5
background:
enabled: false
experimental:
color_threshold: true
show:
last_updated: true
graph_span: 24h
span:
start: day
offset: "-0day"
header:
show: true
show_states: false
colorize_states: false
yaxis:
- min: 0
decimals: 1
apex_config:
tickAmount: 5
series:
- entity: sensor.tpj4cjm04k_statement_of_charge_2
show:
header_color_threshold: true
extremas: true
as_duration: hour
datalabels: false
unit: " %"
color: mediumaquamarine
type: line
name: Baterie
group_by:
func: max
duration: 30min
now:
show: true
color: 2eb9ff
label: now