Not all labels are visible on Bottom Axis

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
qcrnd
Advanced
Posts: 214
Joined: Mon Sep 04, 2006 12:00 am

Not all labels are visible on Bottom Axis

Post by qcrnd » Tue Mar 31, 2009 11:25 am

Hi
I have a bar chart and I set the Chart.Axes.Bottom.Labels.Angle = 90
but I find that not all the labels are there . I want a label on every bar. It seems like the size of the text also influences the gap but it should be so because the labels are vertical not horizontal.
See attached image
Image

Thanks

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

Post by Narcís » Tue Mar 31, 2009 11:45 am

Hi qcrnd,

I think this is the same problem as discussed here.

Hope this helps!
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

qcrnd
Advanced
Posts: 214
Joined: Mon Sep 04, 2006 12:00 am

Post by qcrnd » Tue Mar 31, 2009 1:25 pm

Hi Narcis
I didnt really find what I was looking for in the threads.
As I said , my problem is that I AM working with 90 degrees angle but still I only see a few labels and not all the labels .
The funny thing also is that the number of labels depends on the length of the label. if the text is smaller there are more labels. but this isnt logical because the labels are vertical so the length shouldnt have any impact.
Its as if all the calculations assume that the angle is 0.
Please help , if you want I can send you my sample code.

qcrnd
Advanced
Posts: 214
Joined: Mon Sep 04, 2006 12:00 am

Post by qcrnd » Tue Mar 31, 2009 2:34 pm

Hi
I just made tests and found that if I define the increment value to be a large number (like 10000), much larger then the number of labels then everything is fine and I see all the labels in the chart. I dont quite understand from the documentation what the increment value does and I am sure that what I did isnt the correct way .
Please help

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

Post by Narcís » Tue Mar 31, 2009 3:27 pm

Hi qcrnd,

Yes please, send us a simple example project we can run "as-is" to reproduce the problem here.

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

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

qcrnd
Advanced
Posts: 214
Joined: Mon Sep 04, 2006 12:00 am

Post by qcrnd » Tue Mar 31, 2009 3:43 pm

Hi Narcis
I uploaded the project TChartV3Tester.zip

you can see that the labels are 90 degrees and that not all the bars have labels even though there is room enough for all the labels.

Also if you change the code and put shorter labels then you will see more labels even though they are vertical and the length shouldnt have any difference.

Thanks.

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

Post by Narcís » Tue Mar 31, 2009 4:00 pm

Hi qcrnd,

Thanks for the example project. Even though setting labels angle to 90 admits little bit larger labels than setting it to 0, I think it is the same bug (TF02013544) as described in the thread I pointed originally. I will update the information in the bug list.

In the meantime, the only solution I can think of is using custom labels as I suggested in the other thread.
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

qcrnd
Advanced
Posts: 214
Joined: Mon Sep 04, 2006 12:00 am

Post by qcrnd » Wed Apr 01, 2009 7:03 am

Hi Narcis
Thanks for the reply. I can try the custom labels but seems that everything works fine if I set the Increment value to a very very large number. (a number larger then the number of labels)
do you see a problem with my workaround ?

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

Post by Narcís » Wed Apr 01, 2009 7:18 am

Hi qcrnd,

The only problem I can think of is that then the chart may not plot labels in smaller increments that this big increment you have set.
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

Post Reply