Hi
I have a sensor that have attributes value (day to day).
With apexchart i try to graph day to day consumption
i did that
type: custom:apexcharts-card
update_interval: 1m
graph_span: 7d
span:
end: day
offset: '-1day'
header:
show: true
title: water
show_states: true
now:
show: true
label: now
apex_config:
legend:
show: false
series:
- entity: sensor.consoeau
type: column
unit: m3
show:
in_header: true
data_generator: |
return entity.attributes.conso.map((entry) => {
return [new Date(entry.endDate), entry.value];
});
Unfortunatly the chart stay empty
please help me
thanks