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.
Multi-line axis labels not supported anymore
Re: Multi-line axis labels not supported anymore
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,
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,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Multi-line axis labels not supported anymore
Put a TChart on a form and add the following code:
Compile the application once with TeeChart 2012 and once with TeeChart 2014 and then compare the results.
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;
Re: Multi-line axis labels not supported anymore
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,
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,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |