Visualise on/off sensor in time

I want to visualise a sensor which has two values, On and Off e.g 0 = Off and 1 = On. I want to see this sensor value in time.

Something like this :
or like this :

And at the same time to be able to use a cursor to see values. As you can see the simple example is tha the sensor has one state but could also have multiple states.

Can this be achieved with Grafana and if yes how ?



You could use mapping override to display on/off instead of 0/1 did you try to graph it ?

Good Luck