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.
ErrorBar x-value is not positioned correctly
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
ErrorBar Series misplaced
I have also noticed this recently while trying to use the errorbar series. Using version 8 D7 and D2006 Pro.
Dan
Dan
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:
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |