Hi there.
I am in the process of making a VBA program that automatically generates graphs based on an input from a data file.
I have been trying to create a graph from this imported data however the axis are displayed incorrectly.
The data in question is approximately 5000 cells, each of type "Time" and referring to a 2 minute time interval over several days.
E.g 1:06:00 PM, 1:08:00 PM, ....... 3:26:00 AM
As the data is over several days, several cells have the same value however the data is in a particular order, starting with the first cell at 1:06:00 PM and ending at 3:26:00 AM a few days later.
To get the basic code going i have plotted this column of data against itself, expecting a linear plot starting at the origin of (1:06:00 PM,1:06:00 PM) (x,y) and ending at (3:26:00 AM,3:26:00 AM) (x,y).
Instead what happens is the plot begins at 12:00:00 AM,12:00:00 AM and arbitrarily ends a day and a half later at 4:48:00 AM,4:48:00 AM as can be seen below
snag.gy/a42ybF.jpg[/url]
When checking the data series it is in the right order however.
snag.gy/uPWbsk.jpg[/url]
Can someone please tell me why the data on the axis starts at the wrong place and doesn't continue over the several day period it is meant to?
Thanks in advance
Edit: It wont let me post image link so add a url tag to the front and h t t p etc to start of link
Bookmarks