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 742

Summary: Wrong labels position when LabelsAngle is oblique
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: AxisAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: major CC: david, jonp
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=14873
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: labels overlapped by the chart when LabelsAngle is oblique
reproduceable test project, axis labels rotation angle etc

Description yeray alonso 2014-04-24 10:25:34 EDT
Created attachment 187 [details]
labels overlapped by the chart when LabelsAngle is oblique

The labels position seems to be wrong when LabelsAngle is oblique.
The problem is reproducible with the code below from v2013.09. It worked fine with v2013.08.

  Chart1.View3D:=false;

  with Chart1.AddSeries(TBarSeries) as TBarSeries do
  begin
    ColorEachPoint:=true;
    for i:=0 to 5 do
     Add(5+random*10, 'my label nÂș' + IntToStr(i));
  end;

  Chart1.Axes.Bottom.LabelsAngle:=45;

Image showing the problem attached.
Comment 1 david berneda 2015-05-20 07:01:20 EDT
Refactored and fixed.
Improved labels alignment to axis ticks for any given angle (0 to 360 degree) and both horizontal and vertical axes.
Comment 2 david berneda 2015-05-20 07:03:23 EDT
Created attachment 448 [details]
reproduceable test project, axis labels rotation angle etc