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 1124 - Left Axis Title cut when multiline
Summary: Left Axis Title cut when multiline
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Axis (show other bugs)
Version: 150120
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-06 06:43 EST by yeray alonso
Modified: 2015-02-06 06:43 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 2015-02-06 06:43:52 EST
It seems the Left Axis Title doesn't calculate the margin correctly when multiline so,if the chart is a bit small the axis title is cut.

May be related to:
http://bugs.teechart.net/show_bug.cgi?id=809

uses Chart, TeeConst, TeeGDIPlus;

var Chart1: TChart;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Self.Width:=400;
  Self.Height:=300;

  Chart1:=TChart.Create(Self);

  with Chart1 do
  begin
    Chart1.Parent:=Self;
    Chart1.Align:=alClient;

    View3D:=false;

    Axes.Left.Title.Font.Height := -12;
    Axes.Left.Title.Caption := 'This is the left axis caption'#13'and can be a bit longer too';
  end;

  Caption:=TeeMsg_Version;
end;