I’m looking for a way to control the yaxis of the following apexcharts:
I would like the steps to be e.g. 5, 10, 15, etc.
Here is the code I currently have:
- type: custom:apexcharts-card
config_templates: system_chart
header:
title: CPU
update_interval: 1m
series:
- entity: sensor.processor_use
color_threshold:
- value: 0
color: green
- value: 60
color: orange
- value: 85
color: red
and the template:
apexcharts_card_templates:
default:
color_list: ["red", "green", "blue", "magenta", "orange"]
system_chart:
style: |-
ha-card {
border-width: 0px !important
}
config_templates: default
header:
show: true
show_states: true
colorize_states: true
experimental:
color_threshold: true
graph_span: 6h
apex_config:
chart:
height: 125px
grid:
show: false
yaxis:
forceNiceScale: true
stroke:
width: 1
curve: smooth
# fill:
# type: solid
# opacity: 0.2
all_series_config:
show:
header_color_threshold: true
yaxis:
- show: true
Many thanks for your help.