E-notation and scientific superscript notation

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
Peter Carr
Newbie
Newbie
Posts: 5
Joined: Tue Nov 08, 2016 12:00 am

E-notation and scientific superscript notation

Post by Peter Carr » Tue May 30, 2017 7:16 pm

I can enter a custom axis label using E-notation. For example, 1.23E3 for 1230. I attempted to use superscript notation by setting

Code: Select all

Chart1.LeftAxis.LabelsExponent:=True;
Chart1.BottomAxis.LabelsExponent:=True;
But, in the example above, this gives 1.23[super]3[/super] where I was expecting 1.23 x 10[super]3[/super].

"En" seems to be interpreted by Teechart as "power of n" whereas in standard E-notation it means "times 10 to the power of n". This seems to me to be a bug rather than a feature.

Is there a workaround?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: E-notation and scientific superscript notation

Post by Sandra » Wed May 31, 2017 9:23 am

Hello Peter,

If you set true the AxisLabelExponent property, you're activated, indirectly, the exponent super script font. If you want show the labels in E-notation you should only change the Axis Value Format without change the AxisLabelExponent property. The code below shows you how:

Code: Select all

Chart1.Axes.Left.AxisValuesFormat := '#.0 "x10" E+0';
Hoping this helps you.
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
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply