Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 694

Summary: The property LabelsExponent doesn’t work right
Product: VCL TeeChart Reporter: sandra pazos <sandra>
Component: AxisAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED WORKSFORME    
Severity: critical CC: david.novo, david, marc, nagai
Priority: High    
Version: 140220   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version: RAD XE5
Attachments: LabelExponent test project & LabelExponent Image result

Description sandra pazos 2014-04-02 07:36:07 EDT
Created attachment 147 [details]
LabelExponent test project & LabelExponent Image result

A client has detected some problems related to incorrect works of LabelsExponent property.

The firs is result form the fact that even if the labels are set to .LabelsExponent:=True, you only paint the labels as exponents if there is an ‘e’, ‘E’ in them, but you size them as if there are exponents regardless of whether or not there is an E in them. Right now, even in a simple demo like below, setting LabelsExponent simply does not work at all.
The problem is reproduced with below code: 

var Series1 :TFastLineSeries;
procedure TForm1.FormCreate(Sender: TObject);
begin
     Series1 := TFastLineSeries.Create(Self);
     Chart1.AddSeries(Series1);
     Series1.FillSampleValues();
     Chart1.Axes.Left.LabelsExponent:=True;
     Chart1.Axes.Bottom.LabelsExponent := True;
     CheckBox1.Checked := false;
end;

The second problem is about incorrect position of exponential labels. This can be demonstrated at design time. Both the X and Y axis are affected. 

You can reproduce the problem with steps below:

a. Start a new VCL project.
b. Drop a TChart on the form.
c. Edit the chart and add a dummy series.
d. Choose Labels and then Options for the Left Axis and check the exponential box. The labels immediately move out of position even when there is no exponential values in place.
e. Choose “#.0 "x10" E+0” as the values format and you will end up with a Y axis that looks something like the one below.
f. Choose Labels and then Options for the Bottom Axis and check the exponential box. As with the Y axis, the labels immediately move out of position even when there is no exponential values in place.
g. Choose “#.0 "x10" E+0” as the values format and you will end up with a X axis that looks something like the one below.

Or using attached project.

The both problems aren't occur in TeeChart.Net
Comment 1 sandra pazos 2014-04-30 04:17:20 EDT
*** Bug 746 has been marked as a duplicate of this bug. ***
Comment 2 david berneda 2014-05-30 10:09:01 EDT
First problem fixed (positioning of non-exponent labels when Exponent=True)
Comment 3 marc meumann 2021-04-20 12:17:58 EDT
Problem does not occur with latest version.