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 1928

Summary: Wrong margin between Axis Labels and Axis Title when using LabelsExponent
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: AxisAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: ---    
Version: 22.170619   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=16696
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2017-10-17 04:09:49 EDT
When you activate the LabelsExponent property, the width&height of the labels changes. However, the margin to the Axis Title doesn't seem to change.

In the following example, the margin in the bottom axis should increase, and the margin in the left axis should be reduced:

uses Series;

procedure TForm1.CheckBox1Click(Sender: TObject);
begin
  Chart1.Axes.Left.LabelsExponent:=CheckBox1.Checked;
  Chart1.Axes.Bottom.LabelsExponent:=CheckBox1.Checked;
end;

procedure TForm1.FormCreate(Sender: TObject);

begin
  Chart1.View3D:=False;
  Chart1.Legend.Visible:=False;
  Chart1.AddSeries(TPointSeries).FillSampleValues;

  Chart1.Axes.Bottom.LabelsExponent:=True;
  Chart1.Axes.Bottom.AxisValuesFormat:='00e-0';
  Chart1.Axes.Left.LabelsExponent:=True;
  Chart1.Axes.Left.AxisValuesFormat:='00e-0';

  Chart1.Axes.Bottom.Title.Text:='Bottom Axis Title';
  Chart1.Axes.Left.Title.Text:='Left Axis Title';

  CheckBox1.Checked:=Chart1.Axes.Left.LabelsExponent;
end;