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 - Multi-line axis labels are not supported anymore
Summary: Multi-line axis labels are not supported anymore
Status: RESOLVED WORKSFORME
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Axis (show other bugs)
Version: 140512
Hardware: PC Windows
: High major
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-28 11:49 EDT by sandra pazos
Modified: 2017-11-02 10:51 EDT (History)
3 users (show)

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


Attachments

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