TChart and uploading data in D4

From: Sonnich Jensen (sonnich.jensen_at_elektrobit.com)
Date: 09/29/04

  • Next message: J French: "Re: Help please. Delphi Newbie"
    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
    >


  • Next message: J French: "Re: Help please. Delphi Newbie"

    Relevant Pages

    • Re: Visitor access to database
      ... A visitor uploading a file to a database on the server is simple? ... are you really storing these files in a database? ... us with more detailed information, we can help you to know what needs to be ...
      (microsoft.public.frontpage.programming)
    • Re: Image Question
      ... the database though... ... and "uploading" it to the server. ... > guy was storing 20,000 video files? ...
      (microsoft.public.dotnet.languages.vb)
    • Re: MDB made on one pc to be used on another.
      ... I also uploaded the file to my website and got them to download it from ... I imported the data and made an Access database here at home, ... I tried a work around by uploading the file to my website and getting ... 1.In Internet Explorer, click Tools, and then click Internet Options. ...
      (microsoft.public.access.conversion)
    • Question...
      ... generate custom .asp code to access the database and to ... interrogate the data with custom SQL. ... uploading files - hence my move to FP2003. ...
      (microsoft.public.frontpage.client)
    • Re: Viewing images stored in a database
      ... >>uploaded by a user and put it in to a database, ... Here is my script (I'm ... >reason you're trying to use base64 encoded data as if it were the original raw ... if you're uploading into a BLOB field you don't need this step. ...
      (comp.lang.php)