Page 1 of 1

About the Axis----Labels

Posted: Thu Nov 20, 2008 9:43 am
by 8574101
Hello,
I have a couple of series(Series1,Series2).
The label style can be setted as this: "Chart1->LeftAxis->LabelStyle = talAuto;".
But I want to set "LabelStyle" of Series1 to "talNone";set "LabelStyle" of Series2 to "talAuto".

In a word ,TChart cann't set LabelStyle of each series.

To realize what I mentioned above I just did as the following codes.

Code: Select all

Chart1->LeftAxis->LabelStyle = talNone;
for(int i=0;i<100;i++)
{
    Series2->addxy(i,i,inttostr(i));
}
So the labels of all the points of Series2 was showed.
But I can't change the "Format" of the labels of Series2 at the "Editing Chart".

_____________
Best regards
wwp

Posted: Thu Nov 20, 2008 9:56 am
by narcis
Hi wwp,

I'm not 100% sure about which is your problem here but I think it may help using a different vertical axis for each series so that you can set a different label style for each axis/series, for example:

Code: Select all

	Series1->VertAxis=aLeftAxis;
	Series2->VertAxis=aRightAxis;

	Chart1->LeftAxis->LabelStyle=talNone;
	Chart1->RightAxis->LabelStyle=talAuto;
Hope this helps!

Posted: Thu Nov 20, 2008 10:19 am
by 8574101
How could I set different "Bottom->LabelStyle" of two series.


Chart1->Bottom->LabelStyle .

Posted: Thu Nov 20, 2008 10:24 am
by narcis
Hi wwp3321,

This is not possible. You should do the same as I showed you for vertical axes, assigning bottom axis to one series and top axis to the other.

Posted: Thu Nov 20, 2008 10:25 am
by narcis
Hi wwp3321,

Actually there would be an option which would be manually setting axes labels as shown in the All Features\Welcome!\Axes\Labels\Custom Labels example in the new features demo, available at TeeChart's program group.

Posted: Thu Nov 20, 2008 10:41 am
by 8574101
Anyway ,thanks for your help.

_______________
Best Regards
wwp