Collapsing x-axis for NaN data
Posted: Tue Sep 08, 2009 7:53 am
Hi,
I have 10 data series. Say i have collected data from 09/01/2009 to 09/05/2009 for all the series. (Date format - MM/DD/YYYY)
Now i have NaN data for all the serieses from 09/02/2009 to 09/04/2009.
Now if i plot the data with x axis as the date time for each data point then there is a big gap in the UI.
It is a waste of space for us. What i need to do is, instead of plotting all the NaN data, i will only plot one NaN data point. That means, the x axis will be collapsed based on the data.
I am not able to do it if i am giving date time as the x axis value.
I have to provide increamental x axis value to achieve that. (Means 1,2,3,4.....)
But we cant assume the x values to be of equal interval. I mean, it may be possible that one data point is at 11:50:00 PM. Another may be at 11:55:00 PM. Next may be at 11:56:00 PM. In that case, i cant provide increamental values.
But without increamental values i am not able to collapse the x axis for all NaN data.
Please suggest me some way that i can follow.
I have 10 data series. Say i have collected data from 09/01/2009 to 09/05/2009 for all the series. (Date format - MM/DD/YYYY)
Now i have NaN data for all the serieses from 09/02/2009 to 09/04/2009.
Now if i plot the data with x axis as the date time for each data point then there is a big gap in the UI.
It is a waste of space for us. What i need to do is, instead of plotting all the NaN data, i will only plot one NaN data point. That means, the x axis will be collapsed based on the data.
I am not able to do it if i am giving date time as the x axis value.
I have to provide increamental x axis value to achieve that. (Means 1,2,3,4.....)
But we cant assume the x values to be of equal interval. I mean, it may be possible that one data point is at 11:50:00 PM. Another may be at 11:55:00 PM. Next may be at 11:56:00 PM. In that case, i cant provide increamental values.
But without increamental values i am not able to collapse the x axis for all NaN data.
Please suggest me some way that i can follow.