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.
right axis not showing values
-
- Newbie
- Posts: 3
- Joined: Tue Jan 05, 2016 12:00 am
- Contact:
Re: right axis not showing values
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.
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 3
- Joined: Tue Jan 05, 2016 12:00 am
- Contact:
Re: right axis not showing values
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
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 511 times
Re: right axis not showing values
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:
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:
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;
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 3
- Joined: Tue Jan 05, 2016 12:00 am
- Contact:
Re: right axis not showing values
thanks.. that did the trick..