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

Summary: Left Axis Title cut when multiline
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: AxisAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: ---    
Version: 150120   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=15425&p=68411#p68411
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

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;