Setting bottom axis to decimal time read from CSV File.
Posted: Mon Jan 07, 2013 9:00 pm
Hi,
My data is read from a CSV (Comma Separated Variable)file.
I'm having trouble getting the correct time to display in the bottom axis.
I'm getting 12:00:00 for every Time Mark label on the grid in the X axis.
The time format in the CSV file is this (based on 24 hour clock):
111458
11 = 11am
14 = 14 minutes
58 = 58 seconds
The left most side (Minimum) of the bottom axis should start at 111458.
I have 2 modes of graphing:
1) Hourly
I need the Right most side (Maximum) to be 65 minutes later - 121958 (as a default span at startup), and should be displayed as 11:14:58.
As the number/value of time points increments, once the value is start+60mins., begin shiftingthe entire graph to the left by 5 mins. and displayed as 12:19:58
2) Entire length of data
The left most side (Minimum) of the bottom axis should start at 111458, and the rightmost(Maximum) to be what ever the last time stamp in the file is (in this case, it's 111807).
Again, the Minimum shoud be displayed as 11:14:58, and the Maximum should be displayed as 11:18:07
In both cases, the number of time mark labels need to be selectable by the user in ranges of 1 sec, 1 min. 5 min, 30min, 1 hour, 4 hours, 8 hours, 12 hours, 24 hours, days, weeks.
These should be easy, but they have me whipped!
Thanks!
My data is read from a CSV (Comma Separated Variable)file.
I'm having trouble getting the correct time to display in the bottom axis.
I'm getting 12:00:00 for every Time Mark label on the grid in the X axis.
The time format in the CSV file is this (based on 24 hour clock):
111458
11 = 11am
14 = 14 minutes
58 = 58 seconds
The left most side (Minimum) of the bottom axis should start at 111458.
I have 2 modes of graphing:
1) Hourly
I need the Right most side (Maximum) to be 65 minutes later - 121958 (as a default span at startup), and should be displayed as 11:14:58.
As the number/value of time points increments, once the value is start+60mins., begin shiftingthe entire graph to the left by 5 mins. and displayed as 12:19:58
2) Entire length of data
The left most side (Minimum) of the bottom axis should start at 111458, and the rightmost(Maximum) to be what ever the last time stamp in the file is (in this case, it's 111807).
Again, the Minimum shoud be displayed as 11:14:58, and the Maximum should be displayed as 11:18:07
In both cases, the number of time mark labels need to be selectable by the user in ranges of 1 sec, 1 min. 5 min, 30min, 1 hour, 4 hours, 8 hours, 12 hours, 24 hours, days, weeks.
These should be easy, but they have me whipped!
Thanks!