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 275

Summary: [TV52016009] A customer made me notice the axis labels behaviour has changed many ...
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: AxisAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: major    
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2013-11-20 10:35:52 EST
A customer made me notice the axis labels behaviour has changed many times in v2010-2011 when you have two series with labels.
http://www.teechart.net/support/viewtopic.php?f=3&t=12958
The code below produces overlapping axis labels in v2010.01 and in v2011.04
However, it shows correct axis labels in v2010.00, v2010.02 and v2011.03
So it was broken in v2010.01, fixed in v2010.02 and broken again in v2011.04.
uses Series;
procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
  Chart1.View3D:=false;
  Chart1.AddSeries(TFastLineSeries);
  Chart1.AddSeries(TFastLineSeries);
  for i:=0 to 49 do
  begin
    Chart1[0].AddXY(i, random, IntToStr(Chart1[0].Count));
    if i mod 5 = 0 then
    begin
      Chart1[1].AddXY(i+0.2, random, IntToStr(Chart1[1].Count));
    end;
  end;
end;
I've seen tha last time it changed was with TeEngine.pas revision 1.160. As explained in the commentary, the change was to fix the case:
  Chart1[0].AddXY(1, 2, 'test1');
  Chart1[0].AddXY(2, 3, 'test2');
  Chart1[1].AddXY(0, 2, 'test0');
  Chart1[1].AddXY(1, 3, 'test3');
And it really seems the two problems are related because in the releases where the first problem is reproducible, the second problem isn't. And viceversa. [created:2012-01-19T12:35:30.000+01:00 reported by:yeray@steema.com reported in version:2011.04.41118 (TeeChart VCL)]