I have searched for an answer to this and experimented with a bunch of possible solutions, but nothing matches what I want or seems to work.
I have an exhaust fan plugged into a smart plug that I control based on room temperature from another sensor. I have a chart that shows when the fan is on and off, which isn’t great, but does the job. What I want to do is replace the y-axis values of 1 and 0 with string values “On” and “Off.” It’s purely a cosmetic detail, but It’s something I would like and would appreciate any suggestions.
I have been over that document repeatedly, but fail to see how it relates to my situation. Maybe I just don’t understand it. If you could explain how to apply it to my code, I would appreciate it.
Thank you for the solution. I hope it’s not too much to ask, but is there a way to do the same thing with the legend value? It’s still showing 1 or 0. If not, I can live with it the way it is, but I’d like to be able to show it as on or off.