Page 1 of 1

TeeChart Axis Text Values

Posted: Tue Sep 28, 2010 1:46 pm
by 10052635
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?

Re: TeeChart Axis Text Values

Posted: Wed Sep 29, 2010 10:32 am
by narcis
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.

Re: TeeChart Axis Text Values

Posted: Wed Sep 29, 2010 12:39 pm
by 10052635
I'm using version 6 of the TeeChart in Borland Builder 4.

Re: TeeChart Axis Text Values

Posted: Wed Sep 29, 2010 1:04 pm
by narcis
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.

Re: TeeChart Axis Text Values

Posted: Wed Sep 29, 2010 1:18 pm
by 10052635
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?

Re: TeeChart Axis Text Values

Posted: Wed Sep 29, 2010 1:35 pm
by narcis
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 7683 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.

Re: TeeChart Axis Text Values

Posted: Wed Sep 29, 2010 2:13 pm
by 10052635
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.

Re: TeeChart Axis Text Values

Posted: Wed Sep 29, 2010 3:25 pm
by 10052635
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.