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?
Removing Data from DateTime Axis
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
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
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
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |