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 529

Summary: ErrorBar Series error is drawn incorrect when the error value is biggest than ErrorBar value and style is LeftRight
Product: .NET TeeChart Reporter: sandra pazos <sandra>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal CC: chris
Priority: High    
Version: TeeChart.NET 2013 4.1.2013.11080   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=4&t=14582&p=64312#p64312
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: Latest revision
Revision v1.13
Winform to test Error functionality

Description sandra pazos 2014-01-08 12:13:33 EST
Created attachment 65 [details]
Latest revision

If you have ErrorBar series and you set its error style to LeftRight, the error is drawn incorrectly when the error value is biggest than ErrorBar value. Seems the problem is introduced when we fixed the bugs numbers TF02014259 and TV52015184. 
The same problem occurs in VCL version. The Error is drawn correctly in the revision v1.13 of the ErrorBar class and if you add ErrorBar values biggest error value. 
Next code reproduces the problem: 
 Error series1;
    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;
      series1 = new Steema.TeeChart.Styles.Error(tChart1.Chart);
      series1.ErrorStyle = ErrorStyles.LeftRight;
      series1.Add(10, 0.3, 0.7);
      series1.ErrorWidth = 10;
      tChart1.Axes.Bottom.SetMinMax(9.0, 11.0);
      tChart1.Axes.Left.SetMinMax(0, 1);
    }
I have attached two images; one corresponds to latest revision of the ErrorBar class and the other to revision v1.13 of the ErrorBar class.
Comment 1 sandra pazos 2014-01-08 12:16:08 EST
Created attachment 66 [details]
Revision v1.13
Comment 2 christopher ireland 2014-01-09 09:58:29 EST
Created attachment 67 [details]
Winform to test Error functionality
Comment 3 christopher ireland 2014-01-09 09:59:28 EST
Attachment "Winform to test Error functionality" demonstrates correct functioning of Error series with latest sources.