Page 1 of 1

Zero is not well displayed on axes

Posted: Wed Apr 20, 2005 2:03 pm
by 9339785
Hello,

I have a problem with the zero of the rigth and left axes in scientific notation, as you can see :

http://img103.echo.cx/my.php?image=teechart9eu.jpg

Is there solution to correct this problem ?

Thanks
Franck

Posted: Thu Apr 21, 2005 8:29 am
by narcis
Hello Franck,

I haven't been able to reproduce this problem. Would you be so kind to send us and example we can run "as-is" to reproduce the problem here? You can post your example at [url]news://www.steema.net/steema.public.attahcments[/url] newsgroup.

Thanks in advance.

Posted: Thu Apr 21, 2005 8:54 am
by 9339785
The problem could be reproduce like this: add a TLineSeries on the graph with points visibles, and set all the y-values to 0. Then display the left axis into scientific notation like this :
AxisValuesFormat := '#.####e-0';
LabelsExponent := FALSE;
Now you could see the problem when you zoom several times on the serie.

Franck

Posted: Thu Apr 21, 2005 9:37 am
by narcis
Hi Franck,

Using:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
  for i:=0 to 9 do
    Series1.Add(0);

  Chart1.LeftAxis.AxisValuesFormat := '#.####e-0';
  Chart1.LeftAxis.LabelsExponent := FALSE;
end;
I get labels properly displayed (0e0). Could you please give me some other points to follow to reproduce this problem?

Thanks in advance.

Posted: Thu Apr 21, 2005 9:53 am
by 9339785
Narcis,
I send you by email a program example to show you the problem.
Just run the exe and zoom on points .... you will see the zero value is not well displayed.

Franck

NB: I'm working with TeeChart VCL v7.04

Posted: Thu Apr 21, 2005 10:40 am
by narcis
Hi Franck,

Ah, ok! I wasn't zooming the series. Now I've seen the problem. This is a bug and I've already added it to our deffect list to be fixed for future releases.