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 196 - [TV52014940] Logarithminc axis doesn't control fine the number of labels to draw w...
Summary: [TV52014940] Logarithminc axis doesn't control fine the number of labels to d...
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Axis (show other bugs)
Version: unspecified
Hardware: All All
: Normal major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-07 13:41 EDT by yeray alonso
Modified: 2014-11-03 07:14 EST (History)
1 user (show)

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 2013-11-20 10:03:02 EST
Logarithminc axis doesn't control fine the number of labels to draw without overlapping
Similar and probably related to TV52013473.

uses Series, Math;
procedure TForm1.FormCreate(Sender: TObject);
var
  Series1: TFastLineSeries;
  x,y: extended;
  i: integer;
begin
  Chart1.View3D:=false;
  Chart1.Legend.Visible:=false;
  Series1:=Chart1.AddSeries(TFastLineSeries.Create(self)) as TFastLineSeries;
  for i:=1 to 100 do
  begin
    x:=0.5*i;
    y:=power(x,i);
    Series1.AddXY(x,y);
  end;
  Chart1.Axes.Left.Logarithmic:=true;
  Chart1.Axes.Left.LabelsSeparation:=50;  //això semblava un workaround en alguns casos, però aquí no fas res :-(
//  Chart1.Axes.Left.LogarithmicBase:=1E13;  //workaround
end;

In NET it behaves different. If you try to draw the same values, the left axis labels are too long. So I do:
tChart1.Axes.Left.Labels.ValueFormat = "00e-0";
And the result is quite different than in VCL. [created:2010-06-07T12:41:08.000+01:00 reported by:yeray@steema.com reported in version:9.0 (TeeChart VCL)]
Comment 1 Paul 2014-11-03 07:14:05 EST
The same problem occurs when we try to zoom chart with logarithmic scale.

Before zoom:
http://tinypic.com/view.php?pic=2v1xhcl&s=8

After zoom:
http://tinypic.com/view.php?pic=2uzqwx0&s=8