Delta/Difference Function?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Simon
Newbie
Newbie
Posts: 5
Joined: Wed Nov 05, 2003 5:00 am

Delta/Difference Function?

Post by Simon » Thu Jan 22, 2009 7:03 am

Hi,

I have a dataset with a list of distances (expressed in metres). Is there a way to chart the difference between point1-2, point2-3 and so on? Ideally i would like a histogram - plotting delta distance.

If i have to do this manually then so be it.

Simon

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jan 22, 2009 10:18 am

Hi Simon,

I'm afraid this is not possible for now. You'll have to do this manually, for example:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
  Series1.FillSampleValues();

  for i:=1 to Series1.Count-1 do
  begin
    Series2.AddXY(Series1.XValue[i], Series1.YValue[i]-Series1.YValue[i-1]);
  end;
end;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply