formatting axis labels

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
JimR
Newbie
Newbie
Posts: 46
Joined: Mon Oct 24, 2016 12:00 am

formatting axis labels

Post by JimR » Mon Oct 16, 2017 8:42 pm

In the TeeChart Pro v2017 VCL/FMX library reference and user guide it shows using an exponent as follows:

Code: Select all

TChart1.Axis.Left.Labels.Exponent:=True ; 
TChart1.Axis.Left.Labels.ValueFormat:="00e-0" ; 
However, that variable does not seem to exist. I did find that I could use the following to provide the format:

Code: Select all

Chart.Axes.Bottom.AxisValuesFormat := s;
Chart.Axes.bottom.LabelsExponent := true;
Is that the correct way? It "works" except the label is too high so that the scale labels drop down and covers part of the title for the bottom axis as shown in the attachment. Is there a way to fix this? Looks rather ugly!

Is my copy of the User Guide out of date? It does say v2017.

Thanks
Attachments
Screen Shot 10-16-17 at 04.28 PM.PNG
Screen Shot 10-16-17 at 04.28 PM.PNG (2.2 KiB) Viewed 8769 times

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: formatting axis labels

Post by Yeray » Tue Oct 17, 2017 8:26 am

Hello,

I've reproduced the problem so I've added it to the public tracker here:
http://bugs.teechart.net/show_bug.cgi?id=1928
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

JimR
Newbie
Newbie
Posts: 46
Joined: Mon Oct 24, 2016 12:00 am

Re: formatting axis labels

Post by JimR » Thu Oct 26, 2017 8:52 pm

One more problem: when using an exponent the axis labels do not rotate. At 90 degrees the axis moves up to allow the space for rotated axis labels but they stay at 0 degrees.

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: formatting axis labels

Post by Yeray » Fri Oct 27, 2017 9:48 am

Hello,
JimR wrote:One more problem: when using an exponent the axis labels do not rotate. At 90 degrees the axis moves up to allow the space for rotated axis labels but they stay at 0 degrees.
That's right. As they are drawn, the labels can't be rotated when using LabelsExponent. I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1934
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply