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 2491

Summary: ErrorPointSeries drawing wrong errors in logarithmic axes
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: SeriesAssignee: yeray alonso <yeray>
Status: RESOLVED FIXED    
Severity: enhancement CC: yeray
Priority: ---    
Version: 33.210915   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: https://www.steema.com/support/viewtopic.php?f=3&t=17577&p=78170#p78170
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2021-12-15 08:21:24 EST
A simple example to compare the same series in a non-logarithmic and a logarithmic axis:

  Chart1.View3D:=False;
  Chart2.View3D:=False;

  with TErrorPointSeries(Chart1.AddSeries(TErrorPointSeries)) do
  begin
    Errors.Format.Top.Hide;
    Errors.Format.Bottom.Hide;
    Marks.Show;

    Add(1000, 1, 900, 9000, 0, 0, 'L: '+FormatFloat('#,##0.##', 1000-900)+', R: '+FormatFloat('#,##0.##', 1000+9000));
  end;

  Chart1.Axes.Bottom.SetMinMax(0,10100);
  Chart1.Axes.Bottom.LabelStyle:=talValue;

  Chart2.AddSeries(CloneChartSeries(Chart1[0]));
  Chart2.Axes.Bottom.Logarithmic:=True;
  Chart2.Axes.Bottom.SetMinMax(0,1000000);
  Chart2.Axes.Bottom.LabelStyle:=talValue;