type: custom:apexcharts-card
header:
show: true
show_states: true
colorize_states: true
title: Room Ambience
graph_span: 7d
span:
end: day
yaxis:
- min: 0
max: ~11
apex_config:
plotOptions:
bar:
columnWidth: 30%
xaxis:
type: datetime
tickAmount: 7
labels:
show: true
rotate: -50
trim: false
hideOverlappingLabels: false
series:
- entity: sensor.temperature_sensor_temperature
show:
header_color_threshold: true
extremas: true
type: column
name: Temperature
color: "#007BFF"
group_by:
func: last
duration: 24h
- entity: sensor.temperature_sensor_humidity
type: line
color: orange
name: Humidity
group_by:
func: last
duration: 24h
The issue might be that it’s not showing the last date label because it’s today. Try this instead.
span:
end: hour
FYI: I don’t think a tilda is recognized and it might be seen as null
so you also might want to change this.
yaxis:
- min: 0
max: ~11
Thanks for the response. Already tried them but has no effect. If I change groupby duration to 23h it shows.
Wow. That’s really wired. I’ve been trying almost everything i could think of for the last hour and nothing worked. From what I read, when using 24h the Apex card is looking for a full day of data but only sees a partial day because the day isn’t over so it doesn’t show the label. However, when using 23h the card is no longer looking for a full day and is instead only expecting a partial day of data so since it has that it shows the label.