right axis not showing values

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
blaes.chris
Newbie
Newbie
Posts: 3
Joined: Tue Jan 05, 2016 12:00 am
Contact:

right axis not showing values

Post by blaes.chris » Thu Jun 02, 2016 3:57 pm

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.

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: right axis not showing values

Post by Yeray » Fri Jun 03, 2016 10:12 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

blaes.chris
Newbie
Newbie
Posts: 3
Joined: Tue Jan 05, 2016 12:00 am
Contact:

Re: right axis not showing values

Post by blaes.chris » Fri Jun 03, 2016 12:17 pm

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
Attachments
TEECHART_TST.zip
(55.11 KiB) Downloaded 512 times

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: right axis not showing values

Post by Yeray » Mon Jun 06, 2016 8:34 am

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));
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

blaes.chris
Newbie
Newbie
Posts: 3
Joined: Tue Jan 05, 2016 12:00 am
Contact:

Re: right axis not showing values

Post by blaes.chris » Mon Jun 06, 2016 11:21 am

thanks.. that did the trick..

Post Reply