type: custom:apexcharts-card
graph_span: 4d # I have 4 days worth of data in the future in the attributes
span:
start: hour # I want to display from the start of the current hours 4 days into the future
series:
- entity: sensor.test
data_generator: | # This is what builds the data
return entity.attributes.PeakTimes.map((peak, index) => {
return [new Date(peak).getTime(), entity.attributes.PeakHeights[index]];
});