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 - Rotated lables not aligned with grid lines
Summary: Rotated lables not aligned with grid lines
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Axis (show other bugs)
Version: 140923
Hardware: PC Windows
: Normal enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-30 10:11 EST by narcís calvet
Modified: 2014-12-30 10:13 EST (History)
0 users

See Also:
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 (40.67 KB, application/x-zip-compressed)
2014-12-30 10:11 EST, narcís calvet
Details

Note You need to log in before you can comment on or make changes to this bug.
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;