Page 1 of 1

Delta/Difference Function?

Posted: Thu Jan 22, 2009 7:03 am
by 8441629
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

Posted: Thu Jan 22, 2009 10:18 am
by narcis
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;