
Index
From: Pep
Subject: Re: Bottom Axis Date time problem
Date: Tue, 31 May 2005 16:05:13 +0200
Newsgroup: steema.public.teechart6.cppbuilder
Hi Karsten,
maybe I don't understand what you trying to do, but using the following code
:
procedure TForm1.FormCreate(Sender: TObject);
begin
Series1.FillSampleValues(10);
Series1.XValues.DateTime :=true;
Chart1.BottomAxis.Increment := 1;
Chart1.BottomAxis.DateTimeFormat := 'yyyy-mm-dd hh:mm ampm';
Chart1.BottomAxis.ExactDateTime := true;
Chart1.BottomAxis.LabelsAngle:=90;
end;
it shows the labels as 12 o'clock for every day. Attached image.
Best Regards !
Josep Lluis Jorge
http://support.steema.com
"Karsten Becker" wrote in message
news:tVs9EdHUFHA.3204@TEEPC.Steema.local...
> (Note !!! I'll send this answer again because it did not show up at my PC
> !!!)
>
> Hi Pep
>
> That's not what I ment... with an offset of 24 hours I would like to see
the
> labels with 12 o'clock and not 0 o'clock... so today 12h, tomorrow 12h,
the
> day after tomorrow 12h and so on.
> By setting the fChart->BottomAxis->Increment to 1 it starts at 0'oclock
> today, 0 o'clock tomorrow and so on...
>
> Karsten
>
> "Pep" schreef in bericht
> news:7Q7gloAUFHA.1800@TEEPC.Steema.local...
> > Hi Karsten,
> >
> > you can do :
> >
> > fChart->BottomAxis->DateTimeFormat:='yyyy-mm-dd hh:mm ampm';
> >
> > Best Regards !
> > Josep Lluis Jorge
> > http://support.steema.com
> >
> >
> > "Karsten Becker" wrote in message
> > news:K5KQnO#SFHA.3204@TEEPC.Steema.local...
> >> Hi all
> >>
> >> I'm using TeeChart Pro version 6.0 together with BCB5. I've made a lil
> >> program where my x axis is a date/time axis.
> >>
> >> Therefor I have set the following properties:
> >>
> >> fChart->BottomAxis->Increment = 1; (actually a Tdatetime
value)
> >> fChart->BottomAxis->DateTimeFormat = "yyyy-mm-dd hh:nn"
> >> fChart->BottomAxis->ExactDateTime = true;
> >>
> >> The program is doing what it should do.
> >> (shows the date/time day1 00:00, day2 00:00 ...... day X 00:00).
> >> But I would like to see day1 12:00, day2 12:00 ..... dayX 12:00, so
with
> > an
> >> offset of 12 hours but with an 24 hour cyclus....
> >>
> >> Is there a simple sollution for that? Or do I have to write my own
> >> methods
> >> for that?
> >>
> >> Thanks
> >> Karsten
> >>
> >>
> >
> >
>
>
File attachment Chart.JPG (40.9 KB)