I am using jqplot for showing graphs which will show digital as well as binary values. I am using dateAxisRenderer for the x-axis.
The data to be displayed is in the form of [timestamp, value]. Now the analog graph is working properly, but for the binary I have to show ON and OFF instead of 0 and 1 on the y-axis.
I am using ticks for this behavior and converting values to form [0, ‘OFF’] , [1, ‘ON’] to show the labels on y-axis. The graph shows the labels correctly after this but the values are not shown plotted.
Is there any way to convert the data to display i.e. the ‘value’ so that the values on y-axis are mapped with the required data to display?
Sounds like you need a second yaxis that is formatted with ‘Yes/No’ labels:
Here’s the fiddle I used to generate that…