Is it possible to achieve a combo chart like this in Apex?
I currently have several area series, but would like to add a sensor that has boolean values (On/Off), and would love to display it as an area under the other lines.
Alternatively, if that’s not doable as the Y is dependent on other series, just to have a flat area showing how long heating has been on.
I’ve tried adding the entity as another area series, but it doesn’t seem to work.
card:
type: custom:apexcharts-card
header:
show: true
show_states: true
colorize_states: false
floating: true
all_series_config:
show:
in_header: false
stroke_width: 2
type: area
fill_raw: last
opacity: 0.1
extend_to: now
group_by:
func: avg
duration: 30min
graph_span: 24h
span:
start: day
now:
show: true
apex_config:
legend:
position: top
horizontalAlign: right
grid:
show: false
yaxis:
min: 14
forceNiceScale: true
tickAmount: 5
annotations:
yaxis:
- "y": 21
borderColor: "#fff"
label:
style:
color: "#fff"
background: "#00E396"
text: Target 21C
series:
- entity: sensor.wiser_lts_temperature_living_room
name: Living room
- entity: sensor.wiser_lts_temperature_main_bedroom
name: Bedroom
- entity: sensor.wiser_lts_temperature_guest_bedroom
name: Guests
- entity: sensor.wiser_lts_temperature_kitchen
name: Kitchen
- entity: sensor.weather_station_temperature
name: Bathroom
- entity: sensor.outside_temperature
name: Outside
show:
in_header: true
in_chart: false
- entity: sensor.wiser_boiler
name: Boiler
- entity: sensor.wiser_heating
name: Heating