Page 1 of 1

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

Posted: Wed Feb 24, 2010 8:09 pm
by 9092395
In event AfterDraw, the Axes.Bottom.Labels.Count is 0 why ?
I have a last version of teechart 4.

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

Posted: Thu Feb 25, 2010 9:41 am
by 10050769
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,