TeeChart Axis Text Values

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Roy
Newbie
Newbie
Posts: 64
Joined: Wed Feb 25, 2009 12:00 am
Location: Dallas, Texas
Contact:

TeeChart Axis Text Values

Post by Roy » Tue Sep 28, 2010 1:46 pm

Please note the bottom axis text values. All values are correct except what should be "0" is displayed as some very small number. Is there any way to fix this?
Attachments
Example.jpg
Note Bottom Axis "0" value
Example.jpg (113.33 KiB) Viewed 7759 times

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

Re: TeeChart Axis Text Values

Post by Narcís » Wed Sep 29, 2010 10:32 am

Hi Roy,

If I understand this correctly this is the same issue you reported here, isn't it? If so, could you please answer the questions I made there?

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

Roy
Newbie
Newbie
Posts: 64
Joined: Wed Feb 25, 2009 12:00 am
Location: Dallas, Texas
Contact:

Re: TeeChart Axis Text Values

Post by Roy » Wed Sep 29, 2010 12:39 pm

I'm using version 6 of the TeeChart in Borland Builder 4.

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

Re: TeeChart Axis Text Values

Post by Narcís » Wed Sep 29, 2010 1:04 pm

Hi Roy,

Can you please attach a simple example project we can run "as-is" to reproduce the problem here? Have you tried using the events I suggested?

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

Roy
Newbie
Newbie
Posts: 64
Joined: Wed Feb 25, 2009 12:00 am
Location: Dallas, Texas
Contact:

Re: TeeChart Axis Text Values

Post by Roy » Wed Sep 29, 2010 1:18 pm

Create a chart with a left axis and bottom axis. Set the bottom axis minimum to -1.0, set the bottom axis maximum to +1.0, turn bottom axis automatic to off. Do not load data. This should duplicate what I have shown in the JPEG without the data series. Is there any way I can access the axis text to make changes at runtime?

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

Re: TeeChart Axis Text Values

Post by Narcís » Wed Sep 29, 2010 1:35 pm

Hi Roy,
Create a chart with a left axis and bottom axis. Set the bottom axis minimum to -1.0, set the bottom axis maximum to +1.0, turn bottom axis automatic to off. Do not load data. This should duplicate what I have shown in the JPEG without the data series.


That is using line below, which works fine here both in v8 and v2010. v6 is pretty old and many bug fixes, enhancements and new features have been implemented since.

Code: Select all

	Chart1->Axes->Bottom->SetMinMax(-1, 1);	
With this line and adding a series at runtime without populating it I get this chart:
RoyAxis.jpg
RoyAxis.jpg (15.63 KiB) Viewed 7672 times
Is there any way I can access the axis text to make changes at runtime?
Yes, using the events I told you in your other post. Have you tried using them? Do you have any problem with those events? You'll find more information on how to use them in tutorial 4. Tutorials can be found at TeeChart's program group or at installation Docs folder.

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

Roy
Newbie
Newbie
Posts: 64
Joined: Wed Feb 25, 2009 12:00 am
Location: Dallas, Texas
Contact:

Re: TeeChart Axis Text Values

Post by Roy » Wed Sep 29, 2010 2:13 pm

Thanks for your advice, I am trying the OnGetAxisLabel() to see if this will correct my issue. Will let you know the results when I have them later today.

Roy
Newbie
Newbie
Posts: 64
Joined: Wed Feb 25, 2009 12:00 am
Location: Dallas, Texas
Contact:

Re: TeeChart Axis Text Values

Post by Roy » Wed Sep 29, 2010 3:25 pm

Again, thanks for your help. Using the OnGetAxisLabel(), I have been able to correct this issue and all appears to be functioning very well. Thanks.

Post Reply