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 293 - [TV52015820] Probably related to TV52015179, but probably a particular case not co...
Summary: [TV52015820] Probably related to TV52015179, but probably a particular case n...
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Axis (show other bugs)
Version: unspecified
Hardware: All All
: Normal major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-08 13:13 EST by yeray alonso
Modified: 2013-11-20 10:36 EST (History)
0 users

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 2013-11-20 10:36:50 EST
Probably related to TV52015179, but probably a particular case not contemplated in the fix for TV52015179.
The follwing code produces overlapping labels in the bottom axis:
procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
    value: Double;
begin
  Chart1.View3D := False;
  chart1.Axes.Bottom.DateTimeFormat := 'dd/mm/yy';
  Chart1.AddSeries(TFastLineSeries);
  (Chart1.Series[0] as TFastLineSeries).TreatNulls := tnSkip;
  Chart1.Series[0].XValues.DateTime := False;
  value := 45;
  For i := 300 To 720 do
  begin
    value := value + 0.03 * (Random - random);
    Chart1.Series[0].AddXY(i, value, FormatDateTime('dd/mm/yy', Now - 365 + i));
  end;
  Chart1.AddSeries(TFastLineSeries);
  (Chart1.Series[1] as TFastLineSeries).TreatNulls := tnSkip;
  Chart1.Series[1].XValues.DateTime := False;
  value := 45;
  For i := 1 To 720 do
  begin
    value := value + 0.03 * (Random - random);
    Chart1.Series[1].AddXY(i, value, FormatDateTime('dd/mm/yy', Now - 720 + i));
  end;
end;
http://www.teechart.net/support/viewtopic.php?f=1&t=11916 [created:2011-11-08T13:13:04.000+01:00 reported by:yeray@steema.com reported in version:2011.03.30407 (TeeChart VCL)]