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 2589

Summary: Wrong bottom axis labels when the axis range is very small
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: AxisAssignee: david berneda <david>
Status: RESOLVED FIXED    
Severity: enhancement CC: yeray
Priority: ---    
Version: 37.230130   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: https://www.steema.com/support/viewtopic.php?f=3&t=17837
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2023-02-20 07:27:42 EST
In the following example, the left axis shows labels from -0.8 to 0.8.
However, the bottom axis shows a single label at 0.
The customer expected both axes to show a similar set of labels.

uses Chart, TeeGDIPlus, TeEngine, Series;

procedure TForm1.FormCreate(Sender: TObject);
var Chart1: TChart;
begin
  Chart1:=TChart.Create(Self);
  Chart1.Parent:=Self;
  Chart1.View3D:=False;

  Chart1.AddSeries(TLineSeries);

  Chart1.Axes.Left.SetMinMax(-0.855,0.855);
  Chart1.Axes.Bottom.SetMinMax(-0.855,0.855);
end;
Comment 1 yeray alonso 2023-02-20 07:28:41 EST
Fixed the 18/02/2023 with commit d3a61d8
Comment 2 yeray alonso 2023-02-20 08:08:09 EST
Just added an extra check for XValues (with HasNoMandatoryValues method to support horizontal series), in commit 89c7b79.