Page 1 of 1

Removing Data from DateTime Axis

Posted: Tue May 08, 2007 5:42 pm
by 9231420
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?

Posted: Fri May 11, 2007 3:12 pm
by narcis
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.

Posted: Sun May 13, 2007 11:00 am
by 9231420
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

Posted: Mon May 14, 2007 9:08 am
by narcis
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.