TChart and uploading data in D4
From: Sonnich Jensen (sonnich.jensen_at_elektrobit.com)
Date: 09/29/04
- Previous message: Tom de Neef: "Re: Help please. Delphi Newbie"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Sep 2004 00:04:57 -0700
Hi all!
Just wanted to inform you, that I found the problem here.
The point is, that maximum and minimum values are set when showing
data from the database, but when uploading as I do here, then
TAxis.Maximum and Minimum are not set, nor are TSeries.MinYValue,
MinXValue, MaxYValue, MaxXValue etc.
You have to look for those your self.
I have been surprised about this app., the TeeChart and the
Quickreport works in different ways on every computer!
It is being used on Win98, WinNT and Win2K (and soon another user will
too, that is WinXP, no idea how that will work...)
The programme is made i D4, and portaging it to D5 caused a large
numnber problems, so...
From: Sonnich Jensen (sonnich.jensen@elektrobit.com)
Subject: TChart and uploading data in D4
Newsgroups: comp.lang.pascal.delphi.misc
Date: 2004-08-04 06:39:25 PST
>Hi all!
>
>I have made applications in D5 using TCharts and different
>kind of lines (TLineSeries, TBarseries etc) and uploaded them
>using FillSampleValues. Next I fill in the Xvalues[i] and
>yvalues[i] - this works fine. My xvalues are usually of DateTime.
>
>Next, using it on D4, nothing happens.
>
>LineSeries1.FillSampleValues(qCount.RecordCount);
>for i := 0 to qCount.RecordCount - 1 do
>begin
> LineSeries1.XValues[i] := qCount.FieldByName('sdate').AsDateTime;
> LineSeries1.YValues[i] := qCount.FieldByName('xval').AsFloat;
> qCount.Next;
>end;
>This works in D5, but not in D4 (I have to use D4 for this project)
>
>I made a mistake, and used AsDAteTime for the second one, which
failed
>- but teh chart does not show any data?
>
>
>SECONDLY
>I create my TLineSeries dynamically - should the be a problem?
>I have done that with TDBCharts before without any problems.
>
>
>THIRD
>As the problem above - using FillSampleValues - does it clear
>the present values? E.g. FillSampleValues(7); and later
>FillSampleValues(9); // add 2 will this insert random values
>to the present 7 numbers?
>
>
>BR
>Sonnich
>
- Previous message: Tom de Neef: "Re: Help please. Delphi Newbie"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|