Home › forums › Using CanvasJS › Using CanvasJS for sensor logging
Tagged: Independent Vertical Axis
This topic contains 1 reply, has 2 voices, and was last updated by Vishwas R 2 years, 7 months ago.
I am trying to use CanvasJS for sensor logging where the independent axis is the vertical axis and it is Date and Time and it goes down over time indefinitely, as seen on the machine in this link http://www.schramminc.com/wp-content/uploads/2011/08/EDR_with_field_tech.png. The problem is I cannot get it to plot Date-Time against the Y axis or set the X axis to the vertical axis. My workaround is going to be to convert the DateTime to an arbitrary integer unit and then use the label formatter to convert the label back into a Date and Time. Any other suggestions?
Date-Time support for Y-axis is not available as of now. But as you said, with the help of time-stamp and labelFormatter, you can achieve date-time over y-axis. Please check this jsfiddle.
Another way to achieve this is by rotating the chart-container div with chart axisX as date-time and setting axisYType to secondary. Please refer this jsfiddle.
You must be logged in to reply to this topic.