ErrorBar x-value is not positioned correctly

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Hens
Newbie
Newbie
Posts: 1
Joined: Wed Nov 14, 2007 12:00 am

ErrorBar x-value is not positioned correctly

Post by Hens » Fri Dec 14, 2007 4:16 pm

I have in different applications a problem with errorbars. I want to plot dot's (measurement values) with errorbars (measurement uncertainty).
But every time the errorbar is placed just a little bit left of the dot. When I zoom in the distance stay's the same. I am sure that I give the same x value (measurement date/time) to both dot and errorbar. This is my code:

aXValue := Fields[2].AsFloat;
aSeries.AddXY(aXValue, aValue[aUnit], '', aColor);
aErrorSeries.AddErrorBar(aXValue, aValue[aUnit], aUnc[aUnit]);

I think that this must be a bug in TErrorbar.

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

Post by Narcís » Mon Dec 17, 2007 9:55 am

Hi Hens,

Would you be so kind to arrange a simple example project we can run "as-is" and let us know the steps we should follow to reproduce the issue here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.
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

djsox
Newbie
Newbie
Posts: 8
Joined: Thu Jun 21, 2007 12:00 am

ErrorBar Series misplaced

Post by djsox » Thu Jan 03, 2008 6:40 pm

I have also noticed this recently while trying to use the errorbar series. Using version 8 D7 and D2006 Pro.

Dan

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Fri Jan 04, 2008 9:08 am

Hi Dan and Hens,

Please, send us a simple example as Narcís told you because we're not able to reproduce it. For example, the following seems to be fine here:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
var i : Integer;
Y : Double;
begin
  Chart1[0].Clear;

  for i := 0 to 2 do
  begin
    Y := random * 100;
    Chart1[0].AddXY(i, Y);
    (Chart1[0] as TErrorBarSeries).AddErrorBar(i, Y, Y+20);
  end;
end;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply