Home forums Using CanvasJS Using CanvasJS for sensor logging

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 10 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13925

    drewmurr2
    Member

    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?

    #13954

    Vishwas R
    Keymaster

    @drewmurr2,

    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.


    Vishwas R

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.