TerrorBar Series

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
GMOstroff
Newbie
Newbie
Posts: 4
Joined: Wed Jul 02, 2003 4:00 am
Location: Mahwah, NJ
Contact:

TerrorBar Series

Post by GMOstroff » Wed Jan 12, 2005 4:10 pm

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

Pep
Site Admin
Site Admin
Posts: 3298
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Jan 12, 2005 8:23 pm

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;

Post Reply