Hi,
I have a series with with Datetime data on X-Axis. I am currently displaying X-axis labels in Datetime format at 90 degree angle. It works fine.
But, I want to display the Date part of the date time when
1) only at first and last label being displayed on the axis and
2) when the date changes in the timescale
Forexample, If my series data is for a period between 9/05/08 0:00 and 09/07/08 10:00, then my labels on x-axis should be
09/05/08 0:00 as the first one, followed by only Time labels like "4:00 8:00 12:00 ......etc", then 09/06/08 0:00 (becasue date has changed) followed by "4:00 8:00 12:00 ......etc" and then 09/07/08 0:00 and "4:00 8:00 " and the last one should be 09/07/08 10:00
Is there any auto property setting for TeeChart to acheive this or what is the best possible solution.
This will help reduce the overcrowding of labels on X-axis.
Any help would be appreciated.
Thank you
Kalyan
DateTime Labels on Bottom Axis
DateTime Labels on Bottom Axis
--
Regards
Kalyan
Regards
Kalyan
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Kalyan,
You should customize that using the GetNextAxisLabel event as shown in the examples on those threads:
http://www.teechart.net/support/viewtopic.php?t=8392
http://www.teechart.net/support/viewtopic.php?t=4552
Hope this helps!
You should customize that using the GetNextAxisLabel event as shown in the examples on those threads:
http://www.teechart.net/support/viewtopic.php?t=8392
http://www.teechart.net/support/viewtopic.php?t=4552
Hope this helps!
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 |