Search found 4 matches

by peters
Sun Nov 13, 2011 8:16 pm
Forum: VCL
Topic: Weeknum functionality
Replies: 7
Views: 5033

Re: Weeknum functionality

Hi, I have dug a little in the source code and I think I have a solution, but it would require changes in source code of TeEngine. Date formatting is done in LabelValue function. It gets its parameter (date value for x-label tick) from DoDeaultLabels procedure, but actual x-value is stored only in t...
by peters
Sat Nov 12, 2011 10:00 am
Forum: VCL
Topic: Weeknum functionality
Replies: 7
Views: 5033

Re: Weeknum functionality

Hi, I have almost found a solution which looks like this: procedure TMyChart.ChartGetAxisLabel(Sender: TChartAxis; Series: TChartSeries; ValueIndex: Integer; var LabelText: String); const WW = 'ww'; var WeekNum : string; begin if Sender.IsDateTime and (pos(WW, Sender.DateTimeFormat) > 0) then try We...
by peters
Thu Nov 10, 2011 9:00 pm
Forum: VCL
Topic: Weeknum functionality
Replies: 7
Views: 5033

Re: Weeknum functionality

Thanks for suggestions.

Maybe in the next releases you will consider something like ''ww/yyyy" in date formating options. It would be useful improvement :-).

Peters
by peters
Thu Nov 10, 2011 12:38 pm
Forum: VCL
Topic: Weeknum functionality
Replies: 7
Views: 5033

Weeknum functionality

Hi,

Does TeeChart support weeknum date format in chart settings? I have weekly collected data and I want to label my X-axis as

01/2011, 02/2011 etc.

where first number is a week number in the year.

Thanks
Peters