Zero is not well displayed on axes

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
franckgar
Advanced
Posts: 109
Joined: Thu Nov 04, 2004 5:00 am

Zero is not well displayed on axes

Post by franckgar » Wed Apr 20, 2005 2:03 pm

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
franckgar

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Apr 21, 2005 8:29 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

franckgar
Advanced
Posts: 109
Joined: Thu Nov 04, 2004 5:00 am

Post by franckgar » Thu Apr 21, 2005 8:54 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Apr 21, 2005 9:37 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

franckgar
Advanced
Posts: 109
Joined: Thu Nov 04, 2004 5:00 am

Post by franckgar » Thu Apr 21, 2005 9:53 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Apr 21, 2005 10:40 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply