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 870

Summary: Multi-line axis labels are not supported anymore
Product: VCL TeeChart Reporter: sandra pazos <sandra>
Component: AxisAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED WORKSFORME    
Severity: major CC: buhl, info, marc
Priority: High    
Version: 140512   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=15109#p66962
Chart Series: --- Delphi / C++ Builder RAD IDE Version: RAD XE6

Description sandra pazos 2014-07-28 11:49:34 EDT
In contrast to TeeChart 2012, multi-line axis labels are not supported anymore in TeeChart 2014, May, 12, 2014. Only the first line is used for display of the axis label (see TeeEngine.pas, function TChartAxisTitle.GetCaption).
Even if TChartAxisTitle.GetCaption would return all lines, TCustomTextShape.DoDraw, which actually draws the label, would not draw the lines correctly, if the angle is 90.

The code below reproduce the problem: 
procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.MarginBottom := 10;
  Chart1.MarginLeft := 5;
  Chart1.Axes[0].Title.Angle := 0;
  Chart1.Axes[0].Title.Caption := 'Line 1'#13'Line 2'#13'Line 3';
  Chart1.Axes[2].Title.Angle := 90;
  Chart1.Axes[2].Title.Caption := 'Line 1'#13'Line 2'#13'Line 3';
end;
Comment 1 Erik 2016-11-16 07:35:23 EST
We also have this problem. Is there any action to fix this?
Comment 2 Erik 2017-02-01 06:56:56 EST
Does anyone read this and take care of a fix?
Or is there a workaroud?
Comment 3 marc meumann 2017-11-02 10:51:29 EDT
Not reproducible with current version.