Page 1 of 1

Convert Time stamped Axis to Double

Posted: Wed Feb 25, 2015 9:39 pm
by Kountree
In the event that you have an X-axis that has a valuetype of DateTime, and you want to convert the X-Axis DateTime to a double, here is how to do this. It was not in the documentation.

There is a method called TimeString which accepts two parameters
  • double valueAtAxis
    string FormatStringTime
chart.ViewXY.XAxes[0].TimeString(cursor.ValueAtXAxis, "hh:mm:ss.fff");

Hope this helps