Page 1 of 1

change x axis label

Posted: Mon Nov 15, 2010 1:45 pm
by 10553605
hi

i have a chart that in its x axis we show a date (type datetime out of a cds) in a format dd/mm/yy.
all is well, but now i want to add the day of week for that date.
i didnt find any tool that does that so i tried to use the event: Chart1GetAxisLabel but it never seems to be triggered
no matter what i set in labels-style.

im using teechart 8.05
what am i missing?
how can i add the "day of week" to show near the date itself?
thanks

Re: change x axis label

Posted: Tue Nov 16, 2010 1:36 pm
by yeray
Hi Nati,

You have to set a DateTimeFormat following the rules you can see here. For example:

Code: Select all

Chart1.Axes.Bottom.DateTimeFormat:='ddd dd/MM/yyyy';

Re: change x axis label

Posted: Tue Nov 16, 2010 4:14 pm
by 10553605
10x
it worked!