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 - ErrorPointSeries drawing wrong errors in logarithmic axes
Summary: ErrorPointSeries drawing wrong errors in logarithmic axes
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: 33.210915
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: yeray alonso
URL: https://www.steema.com/support/viewto...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-15 08:21 EST by yeray alonso
Modified: 2021-12-15 08:22 EST (History)
1 user (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 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;