Page 1 of 1

TerrorBar Series

Posted: Wed Jan 12, 2005 4:10 pm
by 8438110
Can somebody send me a snippet of code that shows how to programmatically define a chart with an ErrorBar series? I can't seem to get the hang of the ErrorValues property.

Thanks.
GMO

Posted: Wed Jan 12, 2005 8:23 pm
by Pep
Hi,

a simple example could be :

Code: Select all

uses ErrorBar,Series;
procedure TForm1.FormCreate(Sender: TObject);
var Series1 : TErrorBarSeries;
begin
  Series1 := TErrorBarSeries.Create(self);
  Series1.ParentChart := Chart1;
  Series1.AddErrorBar(0,-123,23,'',clTeeColor);
  Series1.AddErrorBar(1,432,65,'',clTeeColor);
  Series1.AddErrorBar(2,-88,13,'',clTeeColor);
  Series1.AddErrorBar(3,222,44,'',clTeeColor);
  Series1.AddErrorBar(4,-321,49,'',clTeeColor);
end;