Removing Data from DateTime Axis

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
yashab
Newbie
Newbie
Posts: 4
Joined: Fri Mar 12, 2004 5:00 am

Removing Data from DateTime Axis

Post by yashab » Tue May 08, 2007 5:42 pm

We use you chart package in trading software
I need to implement chart without showing weekend’s days
Bottom Axis should be DateTime, since our application shows up to 10 days with intra day data.
This data contains objects that better handled with DateTime type.
Example – Axis Labels no Weekends – do not use DateTime
How can I remove weekend days from the Axis or moreover remove before/after trading hours, such as 00:00 – 8:30 and 16:00 – 23:59?
Of course, removing should cut the empty places.
Is a version 8 solving this problem, or there is another solution?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri May 11, 2007 3:12 pm

Hi yashab,

If you don't have weekends data as null values or zero you should do what's suggested here.

Or here for the ActiveX version, even the same applies to VCL version:

http://www.steema.com/support/faq/NewAX/faq_ax.htm

Candle Series
How can I remove weekends on Candle ODBC database Charts?
How can I remove weekends programmatically?

If your series data has weekends marked as zero or null values then you should iterate through all values in the series, once added to the chart, and check if the punts are null. If so, then remove that point.

In TeeChart v8 this has been enhanced including a property called TreatNulls which handles those values automatically.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

yashab
Newbie
Newbie
Posts: 4
Joined: Fri Mar 12, 2004 5:00 am

Post by yashab » Sun May 13, 2007 11:00 am

Thanks for the answer
I understand that the problem may be solved by unchecking DateTime format
However I would like to stay with DateTime format
Is it possible to cut the axis in the way that removing points from 9:00 to 16:00, causes 16:00 appears right next to 9:00?
Example :
DateTime axis
8:00 9:00 16:00 17:00

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon May 14, 2007 9:08 am

Hi yashab,

This is possible by assigning DateTime values to point labels instead to X values as told in the first link I pointed you.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply