Page 1 of 1
Multi-line axis labels not supported anymore
Posted: Thu Jul 24, 2014 6:43 am
by 16567585
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.
Re: Multi-line axis labels not supported anymore
Posted: Thu Jul 24, 2014 3:40 pm
by 10050769
Hello Collinor,
Could you arrange for us a simple example where all the problems you are experiencing appear, because we can check the problems here and fix these if is the case?
Thanks in advance,
Re: Multi-line axis labels not supported anymore
Posted: Fri Jul 25, 2014 6:10 am
by 16567585
Put a TChart on a form and add the following code:
Code: Select all
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;
Compile the application once with TeeChart 2012 and once with TeeChart 2014 and then compare the results.
Re: Multi-line axis labels not supported anymore
Posted: Mon Jul 28, 2014 3:51 pm
by 10050769
Hello Collinor,
Thanks for the code. We've added the problem in
VCL TeeChart bugzilla tracker to fix it to upcoming versions of TeeChartVCL with number
ID870. Feel Free to add your email account to the ticket so you can be automatically notified when and update arrives.
Thanks in advace,