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 1067

Summary: Rotated lables not aligned with grid lines
Product: VCL TeeChart Reporter: narcís calvet <narcis>
Component: AxisAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: 140923   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=15356&p=68153#p68146
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: First files shows properly aligned lables on the left axis while the one with rotated labels doesn't

Description narcís calvet 2014-12-30 10:11:25 EST
Created attachment 370 [details]
First files shows properly aligned lables on the left axis while the one with rotated labels doesn't

Left axis labels set to 90 degrees don't align with their corresponding grid lines. They are fine at 0 or 45 degrees. Below there's a code snippet reproducing the problem and two screen-shots attached illustrating it.

uses Series;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.View3D := False;
  Chart1.Align := alClient;
  Chart1.AddSeries(TBarSeries.Create(Self));

  Chart1[0].Add(12, '', clGreen);
  Chart1[0].Add(99, '', clRed);

  Chart1.Axes.Left.LabelsAngle := 90;
end;
Comment 1 narcís calvet 2014-12-30 10:13:28 EST
A workaround is setting the labels to 89º, e.g.:

  Chart1.Axes.Left.LabelsAngle := 89;