Page 1 of 1
Compress time on X-axis when no data present
Posted: Thu Aug 19, 2004 2:08 pm
by 9082453
Is there a way to have the datetime on the X-axis compressed for null values. For instance, we might have values for 8:00 9:00 10:00 and 18:00. The graph plots X-axis points between 10:00 and 18:00 even though there is no actual data for this time period, creating an erroneous straight line between these two points on the graph. Is there a way to eliminate this gap?
Thanks,
Mark
Posted: Fri Aug 20, 2004 8:26 am
by Chris
Hi Mark,
Is there a way to have the datetime on the X-axis compressed for null values. For instance, we might have values for 8:00 9:00 10:00 and 18:00. The graph plots X-axis points between 10:00 and 18:00 even though there is no actual data for this time period, creating an erroneous straight line between these two points on the graph. Is there a way to eliminate this gap?
You can use a technique similar to the one outlined in the TeeChart Pro AXv6 Features Demo under:
Welcome -> Previous version -> New Features -> Series -> Candle -> Axis Label No Weekends
Posted: Fri Aug 20, 2004 2:37 pm
by 9082453
Thank you for your response, however, this example does not help us since we are loading hundreds of data points from an html data source, and we have no idea how large the gaps in time are going to be. Here is an example of a piece of the data:
38217,979167.16.''
38217,982639.21.''
38217,986111.31.''
38217,993056.16.''
38218,422917.22.''
38218,426389.26.''
38218,440278.18.''
38218,443750.21.''
Notice the larger than usual gap between 38217,993056 and 38218,422917
For some reason the control is putting in datetime values between these two times on the X-axis even though there is no data, creating an erroneous straight line between the two points.
Any suggestions?
Thanks,
Mark
Posted: Mon Aug 23, 2004 8:18 am
by Chris
Hi Mark,
Notice the larger than usual gap between 38217,993056 and 38218,422917
For some reason the control is putting in datetime values between these two times on the X-axis even though there is no data, creating an erroneous straight line between the two points.
Any suggestions?
Have you had a look at ISeries.AddNullXY() (see help for details)?