teechart problem for series label

2019-01-29 08:52发布

问题:

series[0]->AddXY(30,10,'label1',clRed);
series[0]->parent = chart;

This is my code to print 1 series on chart.
Now I am getting label1 printed on X axis.
Is there any way to print this label on Yaxis.

回答1:

You should set left axis LabelStyle to talText, for example:

Chart1->Axes->Left->LabelStyle = talText;