Page 1 of 1

E-notation and scientific superscript notation

Posted: Tue May 30, 2017 7:16 pm
by 16579547
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?

Re: E-notation and scientific superscript notation

Posted: Wed May 31, 2017 9:23 am
by 10050769
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