Page 1 of 1

formatting axis labels

Posted: Mon Oct 16, 2017 8:42 pm
by 16579481
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

Re: formatting axis labels

Posted: Tue Oct 17, 2017 8:26 am
by yeray
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

Re: formatting axis labels

Posted: Thu Oct 26, 2017 8:52 pm
by 16579481
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.

Re: formatting axis labels

Posted: Fri Oct 27, 2017 9:48 am
by yeray
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