Compress time on X-axis when no data present

TeeChart for ActiveX, COM and ASP
Post Reply
marksonbase
Newbie
Newbie
Posts: 10
Joined: Wed May 12, 2004 4:00 am

Compress time on X-axis when no data present

Post by marksonbase » Thu Aug 19, 2004 2:08 pm

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

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Fri Aug 20, 2004 8:26 am

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
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

marksonbase
Newbie
Newbie
Posts: 10
Joined: Wed May 12, 2004 4:00 am

Post by marksonbase » Fri Aug 20, 2004 2:37 pm

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

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Mon Aug 23, 2004 8:18 am

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)?
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply