This is a migrated thread and some comments may be shown as answers.

How to plot time vs value?

1 Answer 78 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Brian Genisio
Top achievements
Rank 1
Brian Genisio asked on 05 Dec 2012, 05:40 PM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Hristo Germanov
Telerik team
answered on 06 Dec 2012, 08:20 AM
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!
Tags
Charts
Asked by
Brian Genisio
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Share this question
or