Page 1 of 1

How to read and edit bottom Axis labels?

Posted: Tue Jul 28, 2009 1:54 pm
by 13046152
Hi,

I want to read and edit the bottom axis label. But i am not able to read the label. I tried with the following code,

[code]for (int cntLbl = 0; cntLbl < tChart.Axes.Bottom.Labels.Items.Count; cntLbl++)
tChart.Axes.Bottom.Labels.Items[cntLbl].Text = getSpecifiedDetFromPoint(tChart.Axes.Bottom.Labels.Items[cntLbl].Text, selectedYAxis);//Editing the label[/code]

The problem is [code]tChart.Axes.Bottom.Labels.Items.Count [/code]is returning zero.

How to read and edit the Axis labels?

Re: How to read and edit bottom Axis labels?

Posted: Tue Jul 28, 2009 2:26 pm
by narcis
Hi vivek,

Your aproach can only be used when manually adding custom labels to the axis. You can do what you request using the GetAxisLabel event. You'll find examples at Tutorial 4. Tutorials can be found at TeeChart's program group.

Re: How to read and edit bottom Axis labels?

Posted: Wed Jul 29, 2009 4:47 am
by 13046152
Thank you NarcĂ­s.