How to read and edit bottom Axis labels?
Posted: Tue Jul 28, 2009 1:54 pm
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?
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?