Hey there, trying to understand ApexCharts formatting. I have weird issue I can’t seem to solve where setting my series period to “day” reduces the amount of days shown on the chart. As you can see, graph_span is set to 28d, why isn’t the chart spreading everything out to show the full 28 days?
Here is the code:
type: custom:apexcharts-card
graph_span: 28d
span:
start: day
apex_config:
grid:
show: true
strokeDashArray: 0
borderColor: grey
chart:
height: 200
xaxis:
labels:
format: dd
show: true
rotate: 0
rotateAlways: false
yaxis:
- decimals: 0
show: true
min: 0
max: ~5
all_series_config:
stroke_width: 1
header:
show: true
title: Daily Operations
show_states: false
colorize_states: true
series:
- entity: sensor.sump_pump_1_daily
type: column
opacity: 0.5
name: Pump 1 (Primary)
statistics:
type: max
period: day
align: middle
- entity: sensor.sump_pump_2_daily
type: column
opacity: 0.5
name: Pump 2 (Backup)
statistics:
type: max
period: day
align: middle
If I remove the “period: day” from the entity statistic option, the chart plots the full 28 days across the span of the chart, however it will now plot with the default 5 minute periods, which is not what I want. I’m simply looking for the total value of the sensor each day.
Thanks.