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 - Wrong labels position when LabelsAngle is oblique
Summary: Wrong labels position when LabelsAngle is oblique
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Axis (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-24 10:25 EDT by yeray alonso
Modified: 2015-05-20 07:03 EDT (History)
2 users (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
labels overlapped by the chart when LabelsAngle is oblique (24.48 KB, image/png)
2014-04-24 10:25 EDT, yeray alonso
Details
reproduceable test project, axis labels rotation angle etc (2.66 KB, application/x-zip-compressed)
2015-05-20 07:03 EDT, david berneda
Details

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