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 - Wrong margin between Axis Labels and Axis Title when using LabelsExponent
Summary: Wrong margin between Axis Labels and Axis Title when using LabelsExponent
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Axis (show other bugs)
Version: 22.170619
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-17 04:09 EDT by yeray alonso
Modified: 2017-10-17 04:09 EDT (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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;