type: custom:apexcharts-card
graph_span: 25h
span:
offset: '-1h'
now:
show: true
label: Jetzt
all_series_config:
unit: cent
header:
show: true
show_states: true
colorize_states: true
title: Preis Forecast
series:
- entity: ostrom.price
data_generator: |
return entity.map((start, index) => {
return [new Date(start).getTime(), entity.[index]];
});
{{ states(‘ostrom.price’) }}
Output:
[27.62, 25.15, 24.04, 23.44, 23.6, 24.22, 24.22, 25.14, 28.07, 29.71, 33.01, 32.47, 29.71, 28.26, 28.08]
index 1 ist the actual hour
but my datagenerator dont shows data