Page 1 of 1

right axis not showing values

Posted: Thu Jun 02, 2016 3:57 pm
by 16577289
Hello:

I am running delphi seatle on windows server 2008.. using teechart pro v2015.16.150901.

when I edit the chart in development mode in the IDE I am able to change the axis and it displays the values but in runtime mode
when try to display a right axis, the only thing that will show up is the caption. no values are being displayed.
I have verified that the Chart1.axes.RIGHT.Items does contain the values for the axis. and I have made that axis visible.

any help would be great. let me know if you need more information.

Re: right axis not showing values

Posted: Fri Jun 03, 2016 10:12 am
by yeray
Hello,

Do you have a series assigned to the right axis?

If you still find problems with it, please try to arrange a simple example project we can run as-is to reproduce the problem here.

Thanks in advance.

Re: right axis not showing values

Posted: Fri Jun 03, 2016 12:17 pm
by 16577289
I believe so.. i enabled both vertical axis.. I've attached a simple example so you can see the problem.

let me know what I'm doing wrong.

this works in delphi 2007 with teechart pro ver 7.12

Re: right axis not showing values

Posted: Mon Jun 06, 2016 8:34 am
by yeray
Hello,

I see you are using custom labels in your right axis. However, you are adding them using the Add function calling it with the Value argument. See the method signature:

Code: Select all

Function Add(const Value: TAxisValue; const Text:String=''):TAxisItem;
This makes the labels to have an empty text and that's why they are not displayed.
In TeeChart v7 custom labels with an empty text were still drawn, but this changed in later versions.
So now you should add the label with text. Ie this works fine for me with your test application:

Code: Select all

Chart1.axes.RIGHT.Items.Add(x, FormatFloat('#0.##', x));

Re: right axis not showing values

Posted: Mon Jun 06, 2016 11:21 am
by 16577289
thanks.. that did the trick..