Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 530 - ErrorBar Series error is drawn incorrect when the error value is biggest than ErrorBar value and style is LeftRight
Summary: ErrorBar Series error is drawn incorrect when the error value is biggest than...
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: 131119
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-08 12:34 EST by sandra pazos
Modified: 2014-01-13 13:06 EST (History)
2 users (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sandra pazos 2014-01-08 12:34:31 EST
If you have ErrorBar series and you set its error style to LeftRight, the error is drawn incorrectly, the problem only occurs when the error value is biggest than Bar value. Seems the problem is introduced when we fixed the bugs numbers TF02014259 and TV52015184. 

The same problem occurs in TeeCharFor.Net version, bug number=529. The error is drawn correctly if you add Bar values biggest error value. 
Next code reproduces the problem: 
 type
  TForm1 = class(TForm)
    Chart1: TChart;
    Series1: TErrorSeries;
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.View3D:=false;
Series1.AddErrorBar(10, 0.3, 0.7);
Series1.ErrorStyle := essLeftRight;
Chart1.Axes.Bottom.SetMinMax(9.0,11.0);
Chart1.Axes.Left.SetMinMax(0,1);
end;
Comment 1 david berneda 2014-01-13 10:05:41 EST
Is this Error series or ErrorBar series ?

ErrorBar does not allow changing the ErrorStyle property. 
("essTop" is the default in ErrorBar series and the only supported style)

We can add support for the additional styles in future versions.
Comment 2 christopher ireland 2014-01-13 10:40:17 EST
Error series.

It is a defect and has been fixed in the .NET version:
http://bugs.teechart.net/show_bug.cgi?id=529

in id=529 there's an attachment with a form which tests a number of Error series variables. This defect is related to the use of CalcPosSize with logarithmic axes and the fix involves the addition of a new overload to this function.

If you look carefully at the example you will see that the Error line does not extend from 9.3 to 10.7 as it should, but from 9.7 to 10.3.
Comment 3 david berneda 2014-01-13 11:30:53 EST
Fixed. Error size for horizontal style (left, right, left right) was being calculated using the vertical position (YValue) instead of XValue.