tchart.Axes.Bottom.Labels.Count = 0 why ?

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

tchart.Axes.Bottom.Labels.Count = 0 why ?

Post by banzatto » Wed Feb 24, 2010 8:09 pm

In event AfterDraw, the Axes.Bottom.Labels.Count is 0 why ?
I have a last version of teechart 4.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: tchart.Axes.Bottom.Labels.Count = 0 why ?

Post by Sandra » Thu Feb 25, 2010 9:41 am

Hello banzatto,
In event AfterDraw, the Axes.Bottom.Labels.Count is 0 why ?
Axes.Bottom.Labels.Count only change value when you assigned custom labels, as for example demo All Features\Welcome !\Axes\Labels\Custom labels. If you want know number labels, but you don't have custom labels, you could use any of the following ways:

1.- You could assigned manually labels for example:

Code: Select all

 for (int i = 0; i < bar1.Count; i++)
            {
                bar1.Labels[i] = "JJ HH";
            }

int j = bar1.Labels.Count;
2.- Using values of series for example: XValues.Count or YValues.Count.

I hope will helps.


Thanks,
Best Regards,
Sandra Pazos / 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