Page 1 of 1

Not all labels are visible on Bottom Axis

Posted: Tue Mar 31, 2009 11:25 am
by 9092401
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

Posted: Tue Mar 31, 2009 11:45 am
by narcis
Hi qcrnd,

I think this is the same problem as discussed here.

Hope this helps!

Posted: Tue Mar 31, 2009 1:25 pm
by 9092401
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.

Posted: Tue Mar 31, 2009 2:34 pm
by 9092401
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

Posted: Tue Mar 31, 2009 3:27 pm
by narcis
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.

Posted: Tue Mar 31, 2009 3:43 pm
by 9092401
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.

Posted: Tue Mar 31, 2009 4:00 pm
by narcis
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.

Posted: Wed Apr 01, 2009 7:03 am
by 9092401
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 ?

Posted: Wed Apr 01, 2009 7:18 am
by narcis
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.