How to plot time vs value?

2 posts, 1 answers
  1. Brian Genisio
    Brian Genisio avatar
    6 posts
    Member since:
    Jul 2012

    Posted 05 Dec 2012 Link to this post

    I am using a Scatter Line to display a bunch of points.  The format coming to me is TimeSpan/double so my JS data currently looks like this: 
    [["00:02:25", 8.5], ["00:03:06", 9.4]]
    How would I plot this? It doesn't plot correctly right now because the X-axis is a string.  Do I need to translate the time to a Date object? (that doesn't feel right, since I don't know the day)  Or do I need to translate this to seconds/minutes/ect?  

    Any thoughts?
    Brian
  2. Answer
    Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 06 Dec 2012 Link to this post

    Hello Brian Genisio,

    Thank you for contacting us.

    You need to pass date object as a second value for the scatter chart. If you don't know the exact date you can pass any valid date. Can you examine this jsbin and let me know if you experience any further troubles?

    Kind regards,
    Hristo Germanov
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top