I am not sure if this is the right place to ask this, but if not, please be kind and direct me to the best place.
Getting started with Home Assistant and Apexcharts. I would like to set the color of the text of each of the y-axis’s label sets, so for example, the y-axis values associated with the series that is shown as a green line is also green and the y-axis associated with a series that has a blue line is also blue. So far unablke to find anything for that in the doc (that works for me) or any examples.
I had the same requirement and could not find a solution.
So I checked the ApexCharts JS library. https://apexcharts.com/docs/options/yaxis/
Looks like the ApexChart configuration is the same as in HA.
Simply add:
apex_config:
labels:
style:
colors: #hexa color or named color
to your yaxis definition.
Here is my configuration for temperature and humidity sensor graph.